File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
compas_rhino/geometry/brep Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ class Brep(Geometry):
127127 The vertices of the Brep.
128128 edges : list[:class:`~compas.geometry.BrepEdge`], read-only
129129 The edges of the Brep.
130+ trims : list[:class:`~compas.geometry.BrepTrim`], read-only
131+ The trims of the Brep.
130132 loops : list[:class:`~compas.geometry.BrepLoop`], read-only
131133 The loops of the Brep.
132134 faces : list[:class:`~compas.geometry.BrepFace`], read-only
@@ -314,6 +316,10 @@ def vertices(self):
314316 def edges (self ):
315317 raise NotImplementedError
316318
319+ @property
320+ def trims (self ):
321+ raise NotImplementedError
322+
317323 @property
318324 def loops (self ):
319325 raise NotImplementedError
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ class RhinoBrep(Brep):
3535 The list of vertex geometries as points in 3D space.
3636 edges : list[:class:`~compas_rhino.geometry.RhinoBrepEdge`], read-only
3737 The list of edges which comprise this brep.
38+ trims : list[:class:`~compas_rhino.geometry.RhinoBrepTrim`], read-only
39+ The list of trims which comprise this brep.
3840 loops : list[:class:`~compas_rhino.geometry.RhinoBrepLoop`], read-only
3941 The list of loops which comprise this brep.
4042 faces : list[:class:`~compas_rhino.geometry.RhinoBrepFace`], read-only
@@ -106,7 +108,12 @@ def points(self):
106108 @property
107109 def edges (self ):
108110 if self ._brep :
109- return [RhinoBrepEdge (trim ) for trim in self ._brep .Edges ]
111+ return [RhinoBrepEdge (edge ) for edge in self ._brep .Edges ]
112+
113+ @property
114+ def trims (self ):
115+ if self ._brep :
116+ return [RhinoBrepEdge (trim ) for trim in self ._brep .Trims ]
110117
111118 @property
112119 def loops (self ):
You can’t perform that action at this time.
0 commit comments