mcneel / rhino3dm

Libraries based on OpenNURBS with a RhinoCommon style
MIT License
582 stars 135 forks source link

Javascript: surface/face from BrepSurfaceList or BrepFacesList does not have method of domain #468

Closed leifriksheim closed 2 years ago

leifriksheim commented 2 years ago

Hi!

I'm trying to get the faces of a brep and then get an interval value like this with rhino3dm.js

  const brep = rhino.Brep.createFromSphere(sphere);

  const faces = brep.faces();

  for (let i = 0; i < faces.count; i++) {
    const face = faces.get(i);
    const domain = face.domain(0);
  }

I seem to get the error:

Uncaught TypeError: face.domain is not a function

When inspecting the surface object I cannot seem to see this method either.