OCCSurface
- class compas_occ.geometry.OCCSurface(*args, **kwargs)
- Bases: - Surface- Class representing a general surface object. - Parameters:
- namestr, optional
- The name of the surface. 
 
- Attributes:
- continuityint, read-only
- The degree of continuity of the surface. 
- degree_ulist[int], read-only
- The degree of the surface in the U direction. 
- degree_vlist[int], read-only
- The degree of the surface in the V direction. 
- domain_utuple[float, float], read-only
- The parameter domain of the surface in the U direction. 
- domain_vtuple[float, float], read-only
- The parameter domain of the surface in the V direction. 
- is_periodic_ubool, read-only
- Flag indicating if the surface is periodic in the U direction. 
- is_periodic_vbool, read-only
- Flag indicating if the surface is periodic in the V direction. 
 
 - 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 a surface from an existing OCC TopoDS_Face. - Construct a surface from an existing OCC Surface. - Construct a surface from an existing OCC Surface. - Compute the Gaussian curvature at a point on the surface. - Compute the intersections with a curve. - Compute the intersections with a line. - Compute the isoparametric curve at parameter u. - Compute the isoparametric curve at parameter v. - Compute the mean curvature at a point on the surface. - 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. - Inherited Methods - Converts the instance to a string. - Compute the axis-aligned bounding box of the geometry. - Compute the oriented bounding box of the geometry. - Construct an object of this type from a JSON file. - Construct an object of this type from a JSON string. - Load a surface from an OBJ file. - Load a surface from a STP file. - Compute the intersections with a plane. - Compute a normal at 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. - Convert the surface to a list of triangles. - Convert the surface to a list of vertices and faces. - Returns a transformed copy of this geometry. - Translate the geometry. - Returns a translated copy of this geometry. - Validate the data against the object's data schema.