RhinoBrep
- class compas_rhino.geometry.RhinoBrep(*args, **kwargs)[source]
Bases:
Brep
Rhino Brep backend class.
Wraps around and allows serialization and de-serialization of a
Rhino.Geometry.Brep
.- Attributes
native_brep (
Rhino.Geometry.Brep
) – The underlying Rhino Brep instance.vertices (list[
RhinoBrepVertex
], read-only) – The list of vertices which comprise this Brep.points (list[
Point
], read-only) – The list of vertex geometries as points in 3D space.edges (list[
RhinoBrepEdge
], read-only) – The list of edges which comprise this brep.trims (list[
RhinoBrepTrim
], read-only) – The list of trims which comprise this brep.loops (list[
RhinoBrepLoop
], read-only) – The list of loops which comprise this brep.faces (list[
RhinoBrepFace
], read-only) – The list of faces which comprise this brep.frame (
Frame
, read-only) – The brep’s origin (Frame.worldXY()).area (float, read-only) – The calculated area of this brep.
volume (float, read-only) – The calculated volume of this brep.
Methods
Creates a deep-copy of this Brep using the native Rhino.Geometry.Brep copying mechanism.
Construct a Brep from the boolean difference of two groups of Breps.
Construct a Brep from the boolean intersection of two groups of Breps.
Construct a Brep from the boolean union of two groups of Breps.
Create a RhinoBrep from a box.
Create a RhinoBrep from a box.
Constructs a RhinoBrep from an instance of a Rhino.Geometry.Brep.
Create a RhinoBrep from a sphere.
Splits a Brep into pieces using a Brep as a cutter.
Transform this Brep by given transformation matrix
Trim this brep by the given trimming plane
Inherited Methods
Converts the instance to a string.
Generate contour lines by slicing the Brep shape with a series of planes.
Remove all unused edges.
Remove all unused faces.
Remove all unused loops.
Remove all unused vertices.
Fix the shell.
Make a Brep from a list of Brep faces forming an open or closed shell.
Construct a Brep from a COMPAS cone.
Construct a Brep from a set of curves.
Construct an object of this type from the provided data.
Construct a Brep by extruding a closed curve along a direction vector.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Construct a Brep from a COMPAS mesh.
Construct a Brep from a set of polygons.
Conctruct a Brep from the data contained in a STEP file.
Construct a BRep by sweeping a profile along a path.
Construct a Brep from a COMPAS torus.
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.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Slice through the BRep with a plane.
Convert an object to its native data representation.
Export the BRep to a JSON file.
Serialize the data representation of an object to a JSON string.
Convert the faces of this Brep shape to meshes.
Write the BRep shape to a STEP file.
Create a tesselation of the shape for visualisation.
Convert this Brep to a view mesh.
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.
Identify the edges connected to a given vertex.
Identify the faces connected to a vertex.
Identify the neighbouring vertices of a given vertex.