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)
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())
def __init__(self, srf): self._shell = Shell(BRepBuilderAPI_MakeShell(srf.object).Shell())
def shell(self): """ :return: The sphere as a shell. :rtype: afem.topology.entities.Shell """ return Shell(self._builder.Shell())