|
Home >
Products >
TerrainCAD for Rhino >
Help >
Tutorial > Tutorial 2 - Effect of the Search Radius
TerrainCAD for Rhino - Terrain modeling plug-in for Rhinoceros
In this tutorial we will study the effect of the search radius
parameter on the terrain mesh.
Step 1: Delete the terrain mesh created in Tutorial 1. If you are
starting from scratch then carry out steps 1 to 5 in Tutorial 1.
Step 2: Select Create Terrain from the TerrainCAD
menu or type TCCreateTerrain at the Rhino command prompt and
press Enter. At the Rhino command prompt select points, contours
and breaklines, select all the points and press Enter. Specify a
search radius of 50 and press Enter. A mesh is created as shown
below.

Terrain
mesh with holes
You will find that the terrain
mesh created has holes in it and is incomplete (see figure above). This
is because the search radius we specified is not large enough.
Step 3: Use Rhino's Undo command to undo the creation of
the terrain mesh. Carry out the 2 step again and this time set the
search radius to 70. The terrain mesh created this time does not have
holes.
This brings about an interesting question. Why don't we always set the
search radius to a very large value (say 99999999) or zero (which is
equivalent to a very large number since the search radius parameter is
ignored for a value equal to zero)? The answer is we can't always do
that because this may result in a terrain mesh which contains unwanted
triangular faces. In fact the search radius parameter is prevents the
generation of these unwanted faces. Lets see what unwanted faces are by
an example.
Step 4: Delete the terrain mesh and create it again by following
the above steps using the TerrainCAD command with a search radius
of zero. A terrain mesh will be created containing 829 faces (see
message in the command window) as shown below. Zoom into the area marked
in red.

The boundary points
(highlighted in red) are joined by unwanted needle shaped triangular
faces. This happens because the boundary points in this point set do not
describe a convex polygon. As a result the meshing algorithm treats all
points as possible mesh edges and creates faces where it can.

Now delete the terrain mesh
and create it again using a search radius of 70. This time the terrain
mesh contains 828 triangular faces (1 face lesser). The unwanted needle
shaped triangular faces are no longer present in the terrain mesh (see
figure below).

An intelligent use of the
search radius parameter can yield accurate terrain meshes.
Please feel free to call or email us for more information about Terrain modeling plug-in for Rhinoceros.
|