Files to download
Here are some files to download (some of these models are
provided courtesy of INRIA by the |
class Polyhedron_3 |
|
|
The library Jcg provides
methods for loading and drawing a triangle mesh in
a 3D frame. There are two possible ways of
rendering a 3D shape: one based on the Java3D
library, and one based on Processing3D .Both mesh
viewers provide a simple trackball (allowing to
rotate the 3D scene with mouse events). Class TestPolyhedron illustrates how to load a mesh from a file (in OFF format) and how to rendering it, using either Java3D or Processing3D. Method meshStatistics() allows to load a mesh stored in OFF format and to visualize its size and topology. public static void meshStatistics(String filename) { |
1.1 Rendering a 3D shape
Given a triangle mesh (class Polyhedron_3<Point_3>),
there are two ways of obtaining a 3D rendering: |
Examples of 3D rendering of a shape using Jcg, with Java3D and Processing |