OCCRevolutionSurface
- class compas_occ.geometry.OCCRevolutionSurface(*args, **kwargs)[source]
Bases:
compas_occ.geometry.surfaces.surface.OCCSurface
Class representing a surface of revolution based on the corresponding surface of the OCC kernel.
- Parameters
curve (
compas_occ.geometry.OCCCurve
) – The base curve for the revolution. The curve should be planar.point (
compas.geometry.Point
) – The location of the axis of revolution.vector (
compas.geometry.Vector
) – The direction of the axis of revolution.
- Attributes
curve (
compas_occ.geometry.OCCCurve
) – The base curve for the revolution.point (
compas.geometry.Point
) – The location of the axis of revolution.vector (
compas.geometry.Vector
) – The direction of the axis of revolution.
Examples
>>>
Methods
Compute the surface of revolution using the current curve and axis.
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.
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 an object of this type from the provided data.
Construct surface from an existing OCC TopoDS_Face.
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.
Construct a NUBRS surface from an existing OCC BSplineSurface.
Load a surface from a STP file.
Compute the intersections with a line.
Compute the oriented bounding box of the surface.
Compute a point on the surface.
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.
Write the surface geometry to a STP file.
Convert the surface to a triangle mesh.
Convert the surface to a list of triangles.
Transform this surface.
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.