55from . import from_boolean_union
66from . import from_box
77from . import from_brepfaces
8+ from . import from_breps
89from . import from_cone
910from . import from_curves
1011from . import from_cylinder
@@ -176,30 +177,10 @@ def native_brep(self):
176177 def orientation (self ):
177178 raise NotImplementedError
178179
179- @property
180- def type (self ):
181- raise NotImplementedError
182-
183180 @property
184181 def is_valid (self ):
185182 raise NotImplementedError
186183
187- @property
188- def is_shell (self ):
189- raise NotImplementedError
190-
191- @property
192- def is_solid (self ):
193- raise NotImplementedError
194-
195- @property
196- def is_compound (self ):
197- raise NotImplementedError
198-
199- @property
200- def is_compoundsolid (self ):
201- raise NotImplementedError
202-
203184 @property
204185 def is_orientable (self ):
205186 raise NotImplementedError
@@ -327,22 +308,22 @@ def from_brepfaces(cls, faces):
327308 return from_brepfaces (faces )
328309
329310 @classmethod
330- def from_breps (cls , breps ):
311+ def from_breps (cls , breps , * args , ** kwargs ):
331312 """Construct one compound Brep from a list of other Breps.
332313
333314 Parameters
334315 ----------
335- breps : list[ :class:`compas.geometry.Brep`]
316+ breps : list of :class:`compas.geometry.Brep`
336317
337318 Returns
338319 -------
339- :class:`compas.geometry.Brep`
320+ list of :class:`compas.geometry.Brep`
340321
341322 """
342- raise NotImplementedError
323+ return from_breps ( breps , * args , ** kwargs )
343324
344325 @classmethod
345- def from_cone (cls , cone ):
326+ def from_cone (cls , cone , * args , ** kwargs ):
346327 """Construct a Brep from a COMPAS cone.
347328
348329 Parameters
@@ -354,7 +335,7 @@ def from_cone(cls, cone):
354335 :class:`compas.geometry.Brep`
355336
356337 """
357- return from_cone (cone )
338+ return from_cone (cone , * args , ** kwargs )
358339
359340 @classmethod
360341 def from_curves (cls , curves ):
@@ -467,25 +448,22 @@ def from_native(cls, native_brep):
467448 return from_native (native_brep )
468449
469450 @classmethod
470- def from_pipe (cls , curve , radius , thickness = None ):
471- """Construct a Brep by extruding a closed curve along a path curve.
451+ def from_pipe (cls , path , radius , * args , ** kwargs ):
452+ """Construct a Brep by extruding a circle curve along the path curve.
472453
473454 Parameters
474455 ----------
475456 curve : :class:`compas.geometry.Curve`
476457 The curve to extrude
477458 radius : float
478459 The radius of the pipe.
479- thickness : float, optional
480- The thickness of the pipe.
481- The thickness should be smaller than the radius.
482460
483461 Returns
484462 -------
485463 :class:`compas.geometry.Brep`
486464
487465 """
488- return from_pipe (curve , radius , thickness = thickness )
466+ return from_pipe (path , radius , * args , ** kwargs )
489467
490468 @classmethod
491469 def from_plane (cls , plane , domain_u = (- 1 , + 1 ), domain_v = (- 1 , + 1 )):
@@ -524,7 +502,7 @@ def from_planes(cls, planes):
524502 return from_planes (planes )
525503
526504 @classmethod
527- def from_polygons (cls , polygons ):
505+ def from_polygons (cls , polygons , * args , ** kwargs ):
528506 """Construct a Brep from a set of polygons.
529507
530508 Parameters
@@ -536,7 +514,7 @@ def from_polygons(cls, polygons):
536514 :class:`compas.geometry.Brep`
537515
538516 """
539- return from_polygons (polygons )
517+ return from_polygons (polygons , * args , ** kwargs )
540518
541519 @classmethod
542520 def from_sphere (cls , sphere ):
@@ -569,7 +547,7 @@ def from_step(cls, filename):
569547 return from_step (filename )
570548
571549 @classmethod
572- def from_sweep (cls , profile , path ):
550+ def from_sweep (cls , profile , path , * args , ** kwargs ):
573551 """Construct a BRep by sweeping a profile along a path.
574552
575553 Parameters
@@ -584,7 +562,7 @@ def from_sweep(cls, profile, path):
584562 :class:`compas.geometry.Brep`
585563
586564 """
587- return from_sweep (profile , path )
565+ return from_sweep (profile , path , * args , ** kwargs )
588566
589567 @classmethod
590568 def from_torus (cls , torus ):
0 commit comments