示例#1
0
 def __init__(self, faces):
     topods_shell = TopoDS_Shell()
     builder = BRep_Builder()
     builder.MakeShell(topods_shell)
     for face in faces:
         builder.Add(topods_shell, face.object)
     self._shell = Shell(topods_shell)
示例#2
0
 def __init__(self, wire, v):
     v = CheckGeom.to_vector(v)
     builder = BRepPrimAPI_MakePrism(wire.object, v)
     self._shell = Shell(builder.Shape())
     self._w1 = Wire(builder.FirstShape())
     self._w2 = Wire(builder.LastShape())
示例#3
0
 def __init__(self, srf):
     self._shell = Shell(BRepBuilderAPI_MakeShell(srf.object).Shell())
示例#4
0
 def shell(self):
     """
     :return: The sphere as a shell.
     :rtype: afem.topology.entities.Shell
     """
     return Shell(self._builder.Shell())