#include <opennurbs_mesh.h>
◆ ON_SurfaceDraftAngleColorMapping() [1/4]
ON_SurfaceDraftAngleColorMapping::ON_SurfaceDraftAngleColorMapping |
( |
| ) |
|
|
default |
◆ ~ON_SurfaceDraftAngleColorMapping()
ON_SurfaceDraftAngleColorMapping::~ON_SurfaceDraftAngleColorMapping |
( |
| ) |
|
|
default |
◆ ON_SurfaceDraftAngleColorMapping() [2/4]
◆ ON_SurfaceDraftAngleColorMapping() [3/4]
ON_SurfaceDraftAngleColorMapping::ON_SurfaceDraftAngleColorMapping |
( |
ON_3dVector |
up, |
|
|
ON_Interval |
angle_range_in_radians |
|
) |
| |
Construct a ON_SurfaceDraftAngleColorMapping for converting a specified range of draft angles to a color.
- Parameters
-
up | Specify the up direction used to calculate the draft angle. The draft angle of a surface normal N is 0 if N is perpendicular to up, pi/2 (90 degrees) if N an up point the same direction, and -pi/2 (-90 degrees) if N and up point opposite directions. |
angle_range_in_radians | A range that is used to convert draft angles to colors. This interval may be increasing, decreasing, or a singleton. A draft angle equal to angle_range_in_radians[0] is mapped to ON_SurfaceDraftAngleColorMapping::DefaultHueRangeRadians[0]. A draft angle equal to angle_range_in_radians[1] is mapped to ON_SurfaceDraftAngleColorMapping::DefaultHueRangeRadians[1]. A draft angle a in between angle_range_in_radians[0] and angle_range_in_radians[1] is mapped to the saturated color with hue = ON_SurfaceDraftAngleColorMapping::DefaultHueRangeRadians.ParameterAt(angle_range_in_radians.NormalizedParameterAt(a)). Draft angles outside the angle_range_in_radians interval are mapped to the hue assigned to the nearest end of the angle_range_in_radians interval. |
◆ ON_SurfaceDraftAngleColorMapping() [4/4]
Construct a ON_SurfaceDraftAngleColorMapping for converting a specified range of draft angles to a color.
- Parameters
-
up | Specify the up direction used to calculate the draft angle. The draft angle of a surface normal N is 0 if N is perpendicular to up, pi/2 (90 degrees) if N an up point the same direction, and -pi/2 (-90 degrees) if N and up point opposite directions. |
angle_range_in_radians | A range that is used to convert draft angles to colors. This interval may be increasing, decreasing, or a singleton. A draft angle equal to angle_range_in_radians[0] is mapped to hue_range_in_radians[0]. A draft angle equal to angle_range_in_radians[1] is mapped to hue_range_in_radians[1]. A draft angle a in between angle_range_in_radians[0] and angle_range_in_radians[1] is mapped to the saturated color with hue = hue_range_in_radians.ParameterAt(angle_range_in_radians.NormalizedParameterAt(a)). Draft angles outside the angle_range_in_radians interval are mapped to the hue assigned to the nearest end of the angle_range_in_radians interval. |
hue_range_in_radians | When in doubt, pass ON_SurfaceDraftAngleColorMapping::DefaultHueRangeRadians. This parameter specifies the range of color hues (in radians) assigned to the angle_range_in_radians interval. The hue interval may be increasing or decreasing. |
◆ AngleRangeInRadians()
const ON_Interval ON_SurfaceDraftAngleColorMapping::AngleRangeInRadians |
( |
| ) |
const |
◆ Color()
Get the color the the settings in this ON_SurfaceDraftAngleColorMapping assign to a surface normal.
- Parameters
-
surface_normal | Unit length normal to the surface. |
- Returns
- If surface_normal is set and this->IsSet() is true, then the color assigned to the resulting draft angle is returned. Otherwise ON_Color::UnsetColor is returned.
◆ ColorMappingTag()
const ON_MappingTag ON_SurfaceDraftAngleColorMapping::ColorMappingTag |
( |
| ) |
const |
◆ CRC32()
ON__UINT32 ON_SurfaceDraftAngleColorMapping::CRC32 |
( |
| ) |
const |
◆ Hash()
const ON_SHA1_Hash ON_SurfaceDraftAngleColorMapping::Hash |
( |
| ) |
const |
◆ HueRangeInRadians()
const ON_Interval ON_SurfaceDraftAngleColorMapping::HueRangeInRadians |
( |
| ) |
const |
◆ IsSet()
bool ON_SurfaceDraftAngleColorMapping::IsSet |
( |
| ) |
const |
- Returns
- If the draft angle up, angle range, and hue range are set and valid, then true is returned. Otherwise false is returned.
◆ IsUnset()
bool ON_SurfaceDraftAngleColorMapping::IsUnset |
( |
| ) |
const |
- Returns
- If one or more of the up vector, angle range, and hue range are not set or are not valid, valid, then true is returned. Otherwise false is returned.
◆ operator=()
◆ Up()
const ON_3dVector ON_SurfaceDraftAngleColorMapping::Up |
( |
| ) |
const |
◆ DefaultHueRangeRadians
const ON_Interval ON_SurfaceDraftAngleColorMapping::DefaultHueRangeRadians |
|
static |
The default surface draft angle color analysis hue range used by the Rhino DraftAngleAnalysis command is 0 to 4pi/3 (red to blue)
◆ Id
const ON_UUID ON_SurfaceDraftAngleColorMapping::Id |
|
static |
///< {F08463F4-22E2-4cf1-B810-F01925446D71} The id ON_SurfaceDraftAngleColorMapping::Id identifies the surface draft angle color analysis used by the Rhino DraftAngleAnalysis command and is used as the id for mapping tags that indicate per vertex colors were set from surface normal draft angles.
◆ Unset