Recent Changes - Search:

Information

Installation

Documentation

ElementsAboutResolution

The resolution property of a 3D object specifies how to divide the element into smaller pieces before displaying it. This property applies only to the "SIMPLE3D" implementation of the Drawing Panel 3D, which uses the Painter Algorithm to render the graphics. The "JAVA3D" implementation ignores it because it renders the 3D objects using hardware accelerated graphic techniques that makes this property unnecessary.

The SIMPLE3D implementation divides solids (such as cubes, cylinders, surfaces, etc) into small rectangles, and line-based elements such as segments and arrows into smaller segments. The resolution property sets the number of pieces you want for a given 3D object.

The format for the resolution property and its meaning varies slightly among the different objects, but follows similar patterns. For example, for a cube, a resolution given by the string "5,7,9" indicates that the sides of the cube must be divided in 5, 7, and 9 pieces in the X, Y, and Z directions, respectively. A resolution given by a double value of 0.5 indicates that each piece of the cube must be no larger than 0.5 units. The cube computes the actual number of sides according to this requirement and its size.

For a sphere, the string resolution of "5,12,10" indicates that you want 12 divisions along a parallel and 10 along a meridian. The first number, 5, is used for the divisions along a radius in incomplete (cut by a knife) spheres.

Increasing the resolution of an object adds some computational overhead but can improve the quality of the display of intersections among 3D objects.

Edit - History - Print - Recent Changes - Search
Page last modified on April 29, 2010, at 07:19 PM