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 pythonocc.Topo or something.. cannot recall offhand. On Dec 27, 2011 10:12 AM, "Charles Sharman" <charles.shar...@skybeam.com> wrote: > Cowdens <dave.cowden@...> 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 * > > display, start_display, add_menu, add_function_to_menu = init_display() > > > > .... > > Create shape s1 > > .... > > > > display.DisplayShape(s1); > > > > start_display() > > Hi Dave, > > Thanks for responding. My original text wasn't clear when I said "screen > dump." > I know how to display the shape, as you point out above. > > I really do want the text representation. I'm trying to track down a > possible > bug in pythonocc versus DRAWEXE. See my 11/29/11 post. I'm wondering if > the > way floats are treated in pythonocc versus DRAWEXE may put the shapes just > off > enough to make the boolean cut not work in pythonocc but to work in > DRAWEXE. I > want the text representation to see that. Zooming in with the simple gui > didn't > show anything. > > From DRAWEXE, I type, "dump x" where x is the shape and you get a large > text > dump of the shape. I want the equivalent in pythonocc. So, do you know > how to > get the text representation output from pythonocc? > > Thanks, > Charles > > > > > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users