I have a IFC file, then utilizing ifcopenshell, I obtain OCC objects, such as TopoDS_Solid using following codes:
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakeCylinder
shape = BRepPrimAPI_MakeCylinder(60, 60, 50).Shape()
Since Cadquery is based on OCP which is a python wrapper of OpenCascade like pythonpcc, Are there any solutions to convert objects of pythonpcc to OCP, then dispay them is CQ-editor? Thanks for your suggestions.
I have a IFC file, then utilizing ifcopenshell, I obtain OCC objects, such as
TopoDS_Solid
using following codes:Since Cadquery is based on
OCP
which is a python wrapper of OpenCascade likepythonpcc
, Are there any solutions to convert objects of pythonpcc to OCP, then dispay them is CQ-editor? Thanks for your suggestions.