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()


-----Original Message-----
From: pythonocc-users-boun...@gna.org
[mailto:pythonocc-users-boun...@gna.org] On Behalf Of Charles Sharman
Sent: Monday, December 26, 2011 2:35 PM
To: pythonocc-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 information on how to create a
Standard_OStream structure in pythonocc.  I tried:

from OCC.Standard import *
sos = Standard_OStream()

but Standard_OStream doesn't seem to be part of the Standard module.

Can someone help?  I'm using pythonocc0.5.

Thanks In Advance,
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

Reply via email to