RhinoBrep
- class compas_rhino.geometry.RhinoBrep[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.
- verticeslist[
compas_rhino.geometry.RhinoBrepVertex
], read-only The list of vertices which comprise this Brep.
- pointslist[
compas.geometry.Point
], read-only The list of vertex geometries as points in 3D space.
- edgeslist[
compas_rhino.geometry.RhinoBrepEdge
], read-only The list of edges which comprise this brep.
- trimslist[
compas_rhino.geometry.RhinoBrepTrim
], read-only The list of trims which comprise this brep.
- loopslist[
compas_rhino.geometry.RhinoBrepLoop
], read-only The list of loops which comprise this brep.
- faceslist[
compas_rhino.geometry.RhinoBrepFace
], read-only The list of faces which comprise this brep.
- frame
compas.geometry.Frame
, read-only The brep’s origin (Frame.worldXY()).
- areafloat, read-only
The calculated area of this brep.
- volumefloat, read-only
The calculated volume of this brep.
- centroid
compas.geometry.Point
, read-only The calculated centroid of this brep.
- curveslist[
compas_rhino.geometry.RhinoNurbsCurve
], read-only The list of curves which comprise this brep.
- is_closedbool, read-only
True if this brep is closed, False otherwise.
- is_compoundbool, read-only
True if this brep is compound, False otherwise.
- is_compoundsolidbool, read-only
True if this brep is compound solid, False otherwise.
- is_convexbool, read-only
True if this brep is convex, False otherwise.
- is_infinitebool, read-only
True if this brep is infinite, False otherwise.
- is_orientablebool, read-only
True if this brep is orientable, False otherwise.
- is_shellbool, read-only
True if this brep is a shell, False otherwise.
- is_surfacebool, read-only
True if this brep is a surface, False otherwise.
- is_validbool, read-only
True if this brep is valid, False otherwise.
- orientationliteral(
BrepOrientation
), read-only The orientation of this brep. One of: FORWARD, REVERSED, INTERNAL, EXTERNAL.
- shellslist[
compas_rhino.geometry.RhinoBrep
], read-only The list of shells which comprise this brep.
- solidslist[
compas_rhino.geometry.RhinoBrep
], read-only The list of solids which comprise this brep.
- surfaceslist[
compas_rhino.geometry.RhinoNurbsSurface
], read-only The list of surfaces which comprise this brep.
- native_brep
Methods
Cap all planar holes in the Brep.
Check if the Brep contains a given geometric primitive.
Creates a deep-copy of this Brep using the native Rhino.Geometry.Brep copying mechanism.
Fillet edges of the Brep.
Returns a filleted copy of the Brep.
Flip the orientation of all faces of the Brep.
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 Brep from a list of Brep faces forming an open or closed shell.
Joins the breps at any overlapping edges to form as few as possible resulting breps.
Create a RhinoBrep from a cone.
Create a RhinoBreps from a list of planar face boundary curves.
Create a RhinoBrep from a box.
Create a RhinoBrep from an extrusion.
Construct a RhinoBrep from a IGES file.
Construct a Brep by lofting a set of curves.
Create a RhinoBrep from a mesh.
Constructs a RhinoBrep from an instance of a Rhino.Geometry.Brep.
Construct a Brep by extruding a circle curve along the path curve.
Create a RhinoBrep from a plane.
Create a RhinoBrep from a list of polygons.
Create a RhinoBrep from a sphere.
Construct a RhinoBrep from a STEP file.
Construct one or more RhinoBrep(s) from a sweep operation.
Construct a RhinoBrep from a COMPAS torus.
Slice through the Brep with a plane.
Splits a Brep into pieces using a Brep as a cutter.
Convert the faces of this Brep shape to meshes.
Write the Brep shape to a STEP file.
Convert the Brep to a single view mesh.
Transform this Brep by given transformation matrix
Trim this brep by the given trimming plane.
Returns a trimmed copy of this brep by the given trimming plane.
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.
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.
Identify the faces connected to a given edge.
Identify the parent loops of the a given edge.
Fix the shell.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct a Brep from a set of planes.
Heal the shape.
Convert the current shape to a solid if it is a shell.
Compute the overlap between this BRep and another.
Rotate the geometry.
Returns a rotated copy of this geometry.
Scale the geometry.
Returns a scaled copy of this geometry.
Sew together the individual parts of the shape.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Write the Brep shape to an IGES file.
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 faces of this Brep shape to polygons.
Write the Brep shape to an STL file.
Create a tesselation of the shape for visualisation.
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.
Identify the edges connected to a given vertex.
Identify the faces connected to a vertex.
Identify the neighbouring vertices of a given vertex.