Peer-to-Peer Forum

 

Login Register    
Triangulate by script?
Posted: 16 August 2010 04:10 PM  
Newbie
Rank
Total Posts:  2
Joined  2010-06-29

Is there a method to triangulate via python scripting? I couldn’t find anything relevant in the API. I would like to keep the texture mapping and attributes on the polys.

 
Posted: 16 August 2010 05:28 PM   [ # 1 ]  
Moderator
RankRankRankRank
Total Posts:  590
Joined  2008-07-02

Like many Creator tools, Triangulate is not directly available in the OpenFlight API or OpenFlight Script.  OpenFlight API and OpenFlight Script provide functionality at a much lower level.

Don’t despair however… There are several “sample” scripts distributed with the OpenFlight API SDK, one of which is the Creator tool Triangulate.  If you have the OpenFlight API installed, you will find it at:

ROOT/samples/scripts/creatortools/triangulate.py

where ROOT is where you installed the OpenFlight API, typically c:/presagis/openflight_X_Y
where X_Y is the version you installed.

You’ll find several other scripts that perform the functions of common “Creator Tools” here.

Have fun with them!

 
Posted: 16 August 2010 05:36 PM   [ # 2 ]  
Newbie
Rank
Total Posts:  2
Joined  2010-06-29

Swank! I neglected to check there. Thanks for the quick reply