PlanarSurface
- class compas.geometry.PlanarSurface[source]
Bases:
Surface
A planar surface is defined by a local coordinate system and a size.
- Parameters:
- frame
compas.geometry.Frame
, optional The local coordinate system of the surface. Default is
None
, in which case the world coordinate system is used.- xsizefloat, optional
The size of the surface in the local X-direction.
- ysizefloat, optional
The size of the surface in the local Y-direction.
- namestr, optional
The name of the surface.
- frame
Methods
Construct a frame at a point on the planar surface.
Construct a planar surface from a plane and x and y sizes.
Construct the normal at a point on the planar surface.
Construct a point on the planar surface.
Convert the planar surface to a plane.
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.
Compute the axis-aligned bounding box of the geometry.
Compute the oriented bounding box of the geometry.
Make an independent copy of the data object.
Compute the curvature at a point on the surface.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct a parametric surface from a native surface geometry.
Load a surface from an OBJ file.
Load a surface from a STP file.
Compute the intersections with a curve.
Compute the intersections with a line.
Compute the intersections with a plane.
Compute the isoparametric curve at parameter u.
Compute the isoparametric curve at parameter v.
Compute the oriented bounding box of 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.
Write the surface geometry to a STP file.
Convert the surface to a list of triangles.
Convert the surface to a list of vertices and faces.
Transform the local coordinate system of the surface.
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.