Surface
- class compas.geometry.Surface(*args, **kwargs)[source]
Bases:
Geometry
Class representing a general surface object.
- Parameters
name (str, optional) – The name of the surface.
- Attributes
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.
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.
Load a surface from an OBJ file.
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.
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.
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.
Compute point locations corresponding to evenly spaced parameters over the surface domain.
Inherited Methods
Converts the instance to a string.
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.
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.
Transform the geometry.
Returns a transformed copy of this geometry.
Validate the object's data against its data schema.
Validate the object's data against its json schema.