OCCSurface
- class compas_occ.geometry.OCCSurface(name=None)[source]
Bases:
compas.geometry.surfaces.surface.Surface
Class representing a general surface object.
- Parameters
name (str, optional) – The name of the surface.
- Attributes
continuity (int, read-only) – The degree of continuity of the surface.
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.
u_domain (tuple[float, float], read-only) – The parameter domain of the surface in the U direction.
v_domain (tuple[float, float], read-only) – The parameter domain of the surface in the V direction.
is_u_periodic (bool, read-only) – Flag indicating if the surface is periodic in the U direction.
is_v_periodic (bool, read-only) – Flag indicating if the surface is periodic in the V direction.
- Other Attributes
occ_surface (
Geom_Surface
) – The underlying OCC surface.occ_shape (
TopoDS_Shape
, read-only) – An OCC face containing the surface converted to a shape.occ_face (
TopoDS_Face
, read-only) – An OCC face containing the surface.
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 surface from an existing OCC TopoDS_Face.
Construct a NUBRS surface from an existing OCC BSplineSurface.
Compute the intersections with a line.
Compute the oriented bounding box of the surface.
Compute a point on the surface.
Write the surface geometry to a STP file.
Convert the surface to a triangle mesh.
Transform this surface.
Compute the isoparametric curve at parameter u.
Compute the isoparametric curve at parameter v.
Inherited Methods
Make an independent copy of the data object.
Construct an object of this type from the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
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.
Validate the object's data against its data schema (self.DATASCHEMA).
Validate the object's data against its json schema (self.JSONSCHEMA).