Skip to content, Skip to search


TrakEM2 Scripting

989 bytes added, 03:32, 6 April 2011
Generate 3D meshes
= Generate 3D meshes =
In TrakEM2, 3D meshes are generated as a list of [ Point3f] for each object. Then the list is wrapped into any of the subclasses of [ CustomMesh] of the 3D Viewer library, such as a [ CustomTriangleMesh] or a [ CustomLineMesh]. Then these mesh objects are encapsulated into a [ Content] object and added to an instance of the [ Image3DUniverse], which is the main window of the 3D Viewer.
Of course, via scripting many of these steps may be skipped. Below are several examples on how to generate meshes programmatically and save them in [ Wavefront] format.
=== Generate a 3D mesh for an AreaList ===
Emailconfirmed, uploaders