Pipe
- class compas_ifc.representations.Pipe(directrix, radius, inner_radius=None, name=None)
Bases:
GeometryA swept disk solid: circular cross-section swept along a directrix curve.
Directly corresponds to
IfcSweptDiskSolid. Preserves the parametric data (directrix path, radius) that is lost when ifcopenshell evaluates the shape into tessellated or OCC geometry.- Parameters:
- directrix
Polyline The 3D curve along which the circular disk is swept.
- radiusfloat
Outer radius of the circular disk.
- inner_radiusfloat, optional
Inner radius for hollow pipes (annular cross-section).
Nonefor solid pipes.- namestr, optional
Optional name for the pipe.
- directrix
- Attributes:
- directrix
Polyline - radiusfloat
- inner_radiusfloat or None
- namestr or None
- directrix
Methods
Return a deep copy of this pipe.
Approximate surface area from mesh discretisation.
Convert the pipe to a
compas.datastructures.Mesh.Discretise the pipe into vertices and faces.
Transform the pipe by transforming its directrix.
Compute the volume of the swept disk solid.
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.
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.
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.
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.