Shader: "draft angle evaluation"

"draft angle evaluation"

ClassColour
Synopsis False colour shader for evaluation of mold shapes. The direction in which the object is to be pulled from the mold is specified, along with tolerances, and the shader colours the parts of the object that cannot be removed safely from the mold (acceptable tolerances can be specified). The shader colours the object in four different colours (which can be specified) for four regions; 'pass' (can easily be removed from the mold), 'overhang' (this portion of the object is too wide to be pulled out of the mold in the direction specified), 'fail' (this portion of the object will scrape the side of the mold as it is removed) and 'warning' (no safety / tolerance margin).
Arguments

"pull direction" Type: LtVector
Default:(0.0, 0.0, 1.0)
Range: [ -inf, inf ], [ -inf, inf ], [ -inf, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"draft angle" Type: LtFloat
Default:1.0
Range:[ 0, 90 ]
Hint:[ 0, 10 ]
"tolerance angle" Type: LtFloat
Default:0.5
Range:[ 0, 90 ]
Hint:[ 0, 10 ]
"pass colour" Type: LtColour
Default:(0.2, 0.9, 0.1)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"warning colour" Type: LtColour
Default:(1.0, 0.7, 0.0)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"fail colour" Type: LtColour
Default:(1.0, 0.0, 0.3)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"overhang colour" Type: LtColour
Default:(0.0, 1.0, 1.0)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
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 the 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 fine 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-2005, 2006 LightWork Design Limited. All rights reserved