OCCSurface
- class compas_occ.geometry.OCCSurface(*args, **kwargs)[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.
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.
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
Converts the instance to a string.
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.
Load a surface from an OBJ file.
Load a surface from a STP file.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
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.
Convert the surface to a list of triangles.
Returns a transformed copy of this geometry.
Compute evenly spaced parameters over the surface domain in the U direction.
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.