MCPcopy
hub / github.com/CadQuery/cadquery / toOCC

Method toOCC

cadquery/cq.py:447–457  ·  view source on GitHub ↗

Directly returns the wrapped OCCT object. :return: The wrapped OCCT object :rtype: TopoDS_Shape or a subclass

(self)

Source from the content-addressed store, hash-verified

445 return self
446
447 def toOCC(self) -> Any:
448 """
449 Directly returns the wrapped OCCT object.
450
451 :return: The wrapped OCCT object
452 :rtype: TopoDS_Shape or a subclass
453 """
454
455 v = self.val()
456
457 return v._faces if isinstance(v, Sketch) else v.wrapped
458
459 def workplane(
460 self: T,

Callers 1

testToOCCMethod · 0.80

Calls 1

valMethod · 0.95

Tested by 1

testToOCCMethod · 0.64