Working with Triangle Mesh 3D objects

Note: you will need to include GocadData and Gocad3D in your Module Dependencies list in addition to Viewer3D.

Creating a triangle mesh

In this example, we assume you have already created a triangle mesh dataset trianglemeshData and a 3D window threeDWindow. See section Working with Triangle Mesh Data for examples on how to create a triangle mesh dataset. Also, see section Working With Windows to find more information on how to create and set attributes for a 3D window.

    import com.interactive.intviewerapi.objects3d.ITriangleMeshObject3D;
    import com.interactive.intviewerapi.layers.NamedProps;
    NamedProps props = new NamedProps();
    ITriangleMeshObject3D object3D = ITriangleMeshObject3D.factory.createObject3D(threeDWindow, trianglemeshData, props, false);