shader: "draft angle evaluation"

"draft angle evaluation"

ShaderColour

"draft angle evaluation"( "pull direction" LtVector (0.0, 0.0, 1.0)
"draft angle" LtFloat 1.0
"tolerance angle" LtFloat 0.5
"pass colour" LtColour (0.2, 0.9, 0.1)
"warning colour" LtColour (1.0, 0.7, 0.0)
"fail colour" LtColour (1.0, 0.0, 0.3)
"overhang colour" LtColour (0.0, 1.0, 1.0)
)
Synopsis Shader for evaluation mold shapes.
Locationlishpro
Description Surface evaluation for mold design. The "pull direction" parameter is direction in which the cast object is supposed to be pulled out of the mold. It will not be possible to pull it out if part of mold "overhangs" the object i.e. angle between pull direction and surface normal is smaller than 90 deg. If there is a part of surface that has such property then it will be marked with "overhang colour". Next it will be impossible to pull the object out if tangent to the surface is parallel or almost parallel to the pull direction. They must differ by at least "draft angle" (usually 1 deg). So the parts of surface with normals that form angles between 90 deg and 90 deg + "draft angle" will be marked with "fail colour". The parts of surface with normals that fall into range between (90 deg + "draft angle") and (90 deg + "draft angle" + "tolerance angle") can be pulled out, although with some difficulty. So they are marked with "warning colour". Finally if the surface normal forms any angle between (90 deg + "draft angle" + "tolerance angle") and 180 deg with "pull direction" everything is nice and those areas are marked with "pass colour".

Each of the angles must fall into the range (0, 90) deg and also their sum must fall into this range. Otherwise the default angle values are used.

The length of the pull direction vector must be greater than 0.0001. Otherwise the default pull direction is used.

Setting 0.0 for "draft angle" results in "fail colour" zone disappearing.

Setting 0.0 for "tolerance angle" results in "warning colour" zone disappearing.

Setting both angles to 0.0 results in having displayed "pass colour" for normal directions opposite to "pull direction" and "overhang colour" for normal directions consistent with "pull direction".

Previous page alphabetically (distant)
Next page alphabetically (environment)
Index


Copyright © 1990-2004, 2005 LightWork Design Limited. All rights reserved