NurbsSurface
- class compas.geometry.NurbsSurface(*args, **kwargs)[source]
Bases:
Surface
A NURBS surface is defined by control points, weights, knots, and a degree, in two directions U and V.
- Parameters
name (str, optional) – The name of the surface.
- Attributes
points (list[list[
compas.geometry.Point
]], read-only) – The control points as rows along the U direction.weights (list[list[float]], read-only) – The weights of the control points.
u_knots (list[float], read-only) – The knots in the U direction, without multiplicity.
v_knots (list[float], read-only) – The knots in the V direction, without multiplicity.
u_mults (list[int], read-only) – Multiplicity of the knots in the U direction.
v_mults (list[int], read-only) – Multiplicity of the knots in the V direction.
u_degree (list[int], read-only) – The degree of the surface in the U direction.
v_degree (list[int], read-only) – The degree of the surface in the V direction.
Methods
Make an independent copy of the surface.
Construct a BSpline surface from its data representation.
Construct a NURBS surface from the infill between two NURBS curves.
Construct a NURBS surface from a mesh grid.
Construct a NURBS surface from explicit parameters.
Construct a NURBS surface from control points.
Load a NURBS surface from a STP file.
Inherited Methods
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 curvature at a point on the surface.
Compute the local frame at a point on the curve.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Load a surface from an OBJ file.
Compute the intersections with a line.
Compute the oriented bounding box of the surface.
Compute a point on the surface.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Convert the surface to a quad mesh.
Write the surface geometry to a STP file.
Convert the surface to a triangle mesh.
Convert the surface to a list of triangles.
Transform the geometry.
Returns a transformed copy of this geometry.
Compute the isoparametric curve at parameter u.
Compute evenly spaced parameters over the surface domain in the U direction.
Compute the isoparametric curve at parameter v.
Compute evenly spaced parameters over the surface domain in the V direction.
Validate the object's data against its data schema.
Validate the object's data against its json schema.
Compute point locations corresponding to evenly spaced parameters over the surface domain.