If you check the COMPOUND it is likely to contain one or more shells. If
it only contains faces, you will have to construct SHELL(s) from these
first, then SOLID(s).
- Frank
On 08/12/2011 5:43 PM, Jayesh Salvi wrote:
Hi Frank,
That sounds right, but sewing tools doesn't exactly create
TopoDS
Hi Frank,
That sounds right, but sewing tools doesn't exactly create TopoDS_SHELL.
>From the documentation it can create a Shape object or as in the code I've
written (derived from STLReader code), it can create a Compound. I don't
know how to create Shell from these objects.
--
Jayesh
On Thu,
Hi Jayesh
If I remember correctly, the sewing tool only creates shells, and you
have to manually "wrap" them in solids. Here is some code I've used to
do this in the past:
# Note that shells is a Python list of shell(s), and it is assumed that
if there
# are more than 1 shells, the 1st is th
Thomas,
I guess the way to do "cast" in pythonOCC is as follows:
unionop = BRepAlgoAPI_Fuse(TopoDS().solid(aShape), box)
[as seen in the routine ShapeToTopology that you have written somewhere]
But that doesn't help either. I get.
RuntimeError: Standard_TypeMismatch
TopoDS::Solid
Did you mean