RhinoNurbsSurface
- class compas_rhino.geometry.RhinoNurbsSurface[source]
Bases:
RhinoSurface
,NurbsSurface
Class representing a NURBS surface.
- Attributes:
- points: list[list[:class:`compas.geometry.Point`]]
The control points of the surface.
- weights: list[list[float]]
The weights of the control points.
- knots_u: list[float]
The knot vector, in the U direction, without duplicates.
- knots_v: list[float]
The knot vector, in the V direction, without duplicates.
- mults_u: list[int]
The multiplicities of the knots in the knot vector of the U direction.
- mults_v: list[int]
The multiplicities of the knots in the knot vector of the V direction.
- degree_u: int
The degree of the polynomials in the U direction.
- degree_v: int
The degree of the polynomials in the V direction.
Methods
Construct a NURBS surface from the infill between two NURBS curves.
Construct a NURBS surface from explicit parameters.
Construct a NURBS surface from control points.
Inherited Methods
Converts the instance to a string.
Compute the axis aligned bounding box of the surface.
Compute the boundary curves of the surface.
Compute the closest point on the curve to a given point.
Compute the axis-aligned bounding box of the geometry.
Compute the oriented bounding box of the geometry.
Make an independent copy of the current surface.
Compute the curvature at a point on the surface.
Compute the local frame at a point on the curve.
Creates a NURBS surface using the given 4 corners.
Create a NURBS surface from a cylinder.
Creates a planar surface from a frame and parametric domain information.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct a NURBS surface from a mesh grid.
Construct a NURBS surface from a surface object.
Load a surface from an OBJ file.
Construct a surface from a plane.
Construct a NURBS surface from an existing Rhino surface.
Creates a NURBS surface from a sphere.
Load a NURBS surface from a STP file.
Create a NURBS surface from a torus.
Compute the intersections with a curve.
Compute the intersections with a line.
Compute the intersections with a plane.
Compute the isoparametric curve at parameter u.
Compute the isoparametric curve at parameter v.
Compute a normal at a point on the surface.
Compute the oriented bounding box of the surface.
Compute a point on the surface.
Compute point locations corresponding to evenly spaced parameters over the surface domain.
Rotate the geometry.
Returns a rotated copy of this geometry.
Scale the geometry.
Returns a scaled copy of this geometry.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Compute evenly spaced parameters over the surface domain in the U direction.
Compute evenly spaced parameters over the surface domain in the V direction.
Convert the surface to a BREP representation.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Convert the surface to a mesh.
Convert the surface to a polyhedron.
Convert the surface to a list of quads.
Write the surface geometry to a STP file.
Convert the surface to a triangle mesh.
Convert the surface to a list of triangles.
Convert the surface to a list of vertices and faces.
Transform this surface.
Returns a transformed copy of this geometry.
Translate the geometry.
Returns a translated copy of this geometry.
Compute the isoparametric curve at parameter u.
Compute the isoparametric curve at parameter v.
Validate the data against the object's data schema.