@@ -134,8 +134,8 @@ def volume(self):
134134 # ==============================================================================
135135
136136 @classmethod
137- def from_brep (cls , rhino_brep ):
138- """Constructs a RhinoBrep from an instance of a Rhino brep
137+ def from_native (cls , rhino_brep ):
138+ """Constructs a RhinoBrep from an instance of a Rhino.Geometry.Brep.
139139
140140 Parameters
141141 ----------
@@ -165,7 +165,7 @@ def from_box(cls, box):
165165
166166 """
167167 rhino_box = box_to_rhino (box )
168- return cls .from_brep (rhino_box .ToBrep ())
168+ return cls .from_native (rhino_box .ToBrep ())
169169
170170 @classmethod
171171 def from_cylinder (cls , cylinder ):
@@ -182,7 +182,7 @@ def from_cylinder(cls, cylinder):
182182
183183 """
184184 rhino_cylinder = cylinder_to_rhino (cylinder )
185- return cls .from_brep (rhino_cylinder .ToBrep (True , True ))
185+ return cls .from_native (rhino_cylinder .ToBrep (True , True ))
186186
187187 # ==============================================================================
188188 # Methods
@@ -255,7 +255,7 @@ def from_boolean_difference(cls, breps_a, breps_b):
255255 [b .native_brep for b in breps_b ],
256256 TOLERANCE ,
257257 )
258- return [RhinoBrep .from_brep (brep ) for brep in resulting_breps ]
258+ return [RhinoBrep .from_native (brep ) for brep in resulting_breps ]
259259
260260 @classmethod
261261 def from_boolean_union (cls , breps_a , breps_b ):
@@ -280,7 +280,7 @@ def from_boolean_union(cls, breps_a, breps_b):
280280 breps_b = [breps_b ]
281281
282282 resulting_breps = Rhino .Geometry .Brep .CreateBooleanUnion ([b .native_brep for b in breps_a + breps_b ], TOLERANCE )
283- return [RhinoBrep .from_brep (brep ) for brep in resulting_breps ]
283+ return [RhinoBrep .from_native (brep ) for brep in resulting_breps ]
284284
285285 @classmethod
286286 def from_boolean_intersection (cls , breps_a , breps_b ):
@@ -308,7 +308,7 @@ def from_boolean_intersection(cls, breps_a, breps_b):
308308 [b .native_brep for b in breps_b ],
309309 TOLERANCE ,
310310 )
311- return [RhinoBrep .from_brep (brep ) for brep in resulting_breps ]
311+ return [RhinoBrep .from_native (brep ) for brep in resulting_breps ]
312312
313313 def split (self , cutter ):
314314 """Splits a Brep into pieces using a Brep as a cutter.
@@ -325,7 +325,7 @@ def split(self, cutter):
325325
326326 """
327327 resulting_breps = self ._brep .Split (cutter .native_brep , TOLERANCE )
328- return [RhinoBrep .from_brep (brep ) for brep in resulting_breps ]
328+ return [RhinoBrep .from_native (brep ) for brep in resulting_breps ]
329329
330330 # ==============================================================================
331331 # Other Methods
0 commit comments