Thanks Thomas,

I'm reading of problems with occ stl export quality, and suggestions that 
salome improves this.  Do you know if salome stl export improves on occ?

Jason


-----Original Message-----
From: Thomas Paviot [mailto:thomas.pav...@free.fr]
Sent: Thu 29/01/2009 6:55 PM
To: Jason Hoogland
Cc: pythonocc-users@gna.org
Subject: Re: [Pythonocc-users] Stl export
 
Jason Hoogland a écrit :
> Hi,
>
> How would I save the makeBottle shape as an STL file?
>
> Jason
>
>
>   
Hi Jason,

You can use either the StlAPI or StlAPI_Writer classes. Both allow to 
create stl files, but you can define deflection/coefficients with 
StlAPI_Writer.

Here is a simple example that create a sphere and save the result in a 
STL file:

# Create sphere
S = OCC.BRepPrimAPI_MakeSphere(50)
S_shape = S.Shape()
# Export to STL
stl_export = OCC.StlAPI()
stl_export.Write(S_shape,"sphere.stl")

Best regards,

Thomas




_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to