Grid Aspect Ratio
List of: Discussion Topic
Subjects: Faceting
Contents: Faceter


The grid aspect ratio is the ratio of the u and v lengths of a uv grid cell. Thus, the aspect ratio is used only when the grid mode is something other than AF_GRID_NONE. The u and v lengths are in object space. The algorithm tries to make the aspect ratio equal to the one specified, but this is not guaranteed.


The grid aspect ratio is defined as the ratio of the geometric length of a grid in the u parameter direction to the geometric length of the grid in the v parameter direction. The faceter attempts to make grids having a ratio specified by the grid_aspect_ratio refinement parameter. For instance, setting the aspect ratio to 1.0 indicates that the grid should be as square as possible. The algorithm which tries to create grids having a specified aspect ratio has been modified to give better grids when the aspect ratio is 1.0.


The set_grid_aspect_ratio method from the REFINEMENT class specifies the approximate aspect ratio of each cell in the grid. If the value is close to 1, then the cell is close to a square. This does not guarantee the aspect ratio of the facet, which may consist of only a part of a cell.


Figure 1-4 illustrates two cases of grid aspect ratio. The refinement values are specified in Table 1-3.




Figure 1-4. Grid Aspect Ratio


Table 1-3. Grid Aspect Ratio

Refinement Case 1 Value Case 2 Value
Surface Tolerance 0 0
Normal Tolerance 25 25
Grid Aspect Ratio 0 1
Maximum Edge Length 0 0
Maximum Grid Lines 10,000 300
Grid Mode AF_GRID_TO_EDGES AF_GRID_TO_EDGES
Triangulation Mode AF_TRIANG_NONE AF_TRIANG_NONE
Adjust Mode AF_ADJUST_NON_GRID AF_ADJUST_NON_GRID
Surface Mode AF_SURF_ALL AF_SURF_ALL

PDF/FCT/01CMP.PDF
HTM/DATA/FCT/FCT/01CMP/0008.HTM