Hi Dave and Thomas,
Thank you for your help. Both methods (pickle and
OCC.Utils.Topology.dumpTopology) worked. However, the dumpTopology output was
more readable. It is limited to vertex data only, but that's all I need for
now. I may update the function to output Tolerance and other features
Hi charles..
What information do you need specifically? I have this need all the time.
Assumung you need to dump the topology, such as this face as these edges,
which as these vertices at this location, python occ has a good utility
method for this.
I think it is called dumpshape and is in python
2011/12/27 Charles Sharman
> Cowdens writes:
>
> >
> > Hi, Charles:
> >
> > The method you are using dumps a text representation of your shape onto a
> > stream. It works, but I suspect it is not what you are looking for.
> >
> > Try looking at OCC's samples-- you want something like this:
> >
>
Cowdens writes:
>
> Hi, Charles:
>
> The method you are using dumps a text representation of your shape onto a
> stream. It works, but I suspect it is not what you are looking for.
>
> Try looking at OCC's samples-- you want something like this:
>
> from OCC.Display.SimpleGui import *
> displ
users@gna.org
Subject: [Pythonocc-users] Getting a Dump of TopoDS shapes
Hi,
I'm trying to print a dump of my TopoDS shape to screen. I tried:
BRepTools.Dump(s1, sys.stdout)
where s1 is the shape, but it wants a Standard_OStream structure for the
second argument. I couldn't find any
Hi,
I'm trying to print a dump of my TopoDS shape to screen. I tried:
BRepTools.Dump(s1, sys.stdout)
where s1 is the shape, but it wants a Standard_OStream structure for the second
argument. I couldn't find any information on how to create a Standard_OStream
structure in pythonocc. I tried: