OCCBrep
- class compas_occ.brep.OCCBrep(*args, **kwargs)
Bases:
Brep
Class for Boundary Representation of geometric entities.
- Attributes:
- verticeslist[
OCCBrepVertex
], read-only The vertices of the Brep.
- edgeslist[
OCCBrepEdge
], read-only The edges of the Brep.
- loopslist[
OCCBrepLoop
], read-only The loops of the Brep.
- faceslist[
OCCBrepFace
], read-only The faces of the Brep.
- frame
Frame
, read-only The local coordinate system of the Brep.
- areafloat, read-only
The surface area of the Brep.
- volumefloat, read-only
The volume of the regions contained by the Brep.
- verticeslist[
Methods
Check the shape.
Generate contour lines by slicing the BRep shape with a series of planes.
Deep-copy this BRep using the native OCC copying mechanism.
Remove all unused edges.
Remove all unused faces.
Remove all unused loops.
Remove all unused vertices.
Identify the faces connected to an edge.
Identify the parent loops of an edge.
Fillet the edges of a BRep.
Construct a copy of a Brep with filleted edges.
Fix the shell.
Construct a BRep from the boolean difference of two other BReps.
Construct a BRep from the boolean intersection of two other BReps.
Construct a BRep from the boolean union of two other BReps.
Construct a BRep from a COMPAS box.
Make a BRep from a list of BRep faces forming an open or closed shell.
Construct one compound BRep out of multiple individual BReps.
Construct a BRep from a COMPAS cone.
Construct a BRep from a set of curves.
Construct a BRep from a COMPAS cylinder.
Construct a BRep by extruding a closed curve along a direction vector.
Conctruct a BRep from the data contained in a IGES file.
Construct a BRep from a COMPAS mesh.
Construct a BRep from an OCC shape.
Make a BRep from a plane.
Make a BRep from a list of planes.
Construct a BRep from a set of polygons.
Construct a BRep from an OCC shape.
Construct a BRep from a COMPAS sphere.
Conctruct a BRep from the data contained in a STEP file.
Construct a BRep from a COMPAS surface.
Construct a BRep by sweeping a profile along a path.
Construct a BRep from a COMPAS torus.
Heal the shape.
Convert the current shape to a solid if it is a shell.
Compute the overlap between this BRep and another.
Sew together the individual parts of the shape.
Simplify the shape by merging colinear edges and coplanar faces.
Slice a BRep with a plane.
Split a BRep using another BRep as splitter.
Write the BRep shape to a IGES file.
Convert the faces of the BRep shape to meshes.
Convert the faces of the BRep to simple polygons without underlying geometry.
Write the BRep shape to a STEP file.
Write the BRep shape to a STL file.
Create a tesselation of the shape for visualisation.
Convert the BRep to a view mesh.
Transform this Brep.
Return a transformed copy of the Brep.
Trim a Brep with a plane.
Construct a copy of a Brep trimmed with a plane.
Identify the edges connected to a given vertex.
Identify the faces connected to a vertex.
Identify the neighbouring vertices of a given vertex.
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.
Check if the Brep contains a given geometric primitive.
Identify the parent loops of the a given edge.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct a Brep by lofting a set of curves.
Construct a Brep by extruding a closed curve along a path curve.
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.
Translate the geometry.
Returns a translated copy of this geometry.
Validate the data against the object's data schema.