OCCBrep.from_surface
- classmethod OCCBrep.from_surface(surface, domain_u=None, domain_v=None, precision=1e-06, loop=None, inside=True)
- Construct a BRep from a COMPAS surface. - Parameters:
- surfacecompas.geometry.Surface
- domain_utuple, optional
- The domain of the surface in the U direction. 
- domain_vtuple, optional
- The domain of the surface in the V direction. 
- precisionfloat, optional
- The precision of the discretisation of the surface. 
- loopOCCBrepLoop, optional
- The loop to trim the surface with. 
- insidebool, optional
- Whether to keep the inside or outside of the loop. 
 
- surface
- Returns: