Aspose.3D for Java API has support to convert mesh to triangle mesh with custom memory layout of the vertex. The custom memory layout of the Vertex is defined dynamically by VertexDeclaration class in the code examples....creates meshes from the box and sphere to keep the code comprehensive...and used objects like box, sphere, plane, cylinder, and torus...