#include <opennurbs_mesh.h>
◆ ON_SurfaceCurvatureColorMapping() [1/4]
ON_SurfaceCurvatureColorMapping::ON_SurfaceCurvatureColorMapping |
( |
| ) |
|
|
default |
◆ ~ON_SurfaceCurvatureColorMapping()
ON_SurfaceCurvatureColorMapping::~ON_SurfaceCurvatureColorMapping |
( |
| ) |
|
|
default |
◆ ON_SurfaceCurvatureColorMapping() [2/4]
◆ ON_SurfaceCurvatureColorMapping() [3/4]
Construct a ON_SurfaceCurvatureColorMapping for converting a specified range of curvatures to a color.
- Parameters
-
kappa_style | Specifies what curvature value to used. |
kappa_range | A range that is used to convert kappa values to colors. This interval may be increasing, decreasing, or a singleton. A kappa value equal to kappa_range[0] is mapped to ON_SurfaceCurvatureColorMapping::DefaultHueRangeRadians[0]. A kappa value equal to kappa_range[1] is mapped to ON_SurfaceCurvatureColorMapping::DefaultHueRangeRadians[1]. A kappa value k in between kappa_range[0] and kappa_range[1] is mapped to the saturated color with hue = ON_SurfaceCurvatureColorMapping::DefaultHueRangeRadians.ParameterAt(kappa_range.NormalizedParameterAt(k)). Kappa values outside the kappa_range interval are mapped to the hue assigned to the nearest end of the kappa_range interval. |
◆ ON_SurfaceCurvatureColorMapping() [4/4]
Construct a ON_SurfaceCurvatureColorMapping for converting a specified range of curvatures to a color.
- Parameters
-
kappa_style | Specifies what curvature value to used. |
kappa_range | A range that is used to convert kappa values to colors. This interval may be increasing, decreasing, or a singleton. A kappa value equal to kappa_range[0] is mapped to hue_range_in_radians[0]. A kappa value equal to kappa_range[1] is mapped to hue_range_in_radians[1]. A kappa value k in between kappa_range[0] and kappa_range[1] is mapped to the saturated color with hue = hue_range_in_radians.ParameterAt(kappa_range.NormalizedParameterAt(k)). Kappa values outside the kappa_range interval are mapped to the hue assigned to the nearest end of the kappa_range interval. |
hue_range_in_radians | When in doubt, pass ON_SurfaceCurvatureColorMapping::DefaultHueRangeRadians. This parameter specifies the range of color hues (in radians) assigned to the kappa_range interval. This interval may be increasing or decreasing. |
◆ Color()
Get the color the the settings in this ON_SurfaceCurvatureColorMapping assign to a pair of principal surface curvatures.
- Parameters
-
K | principal surface curvatures |
- Returns
- If K and this->IsSet() is true, then the color assigned to the principal curvatures K is returned. Otherwise ON_Color::UnsetColor is returned.
◆ ColorMappingTag()
const ON_MappingTag ON_SurfaceCurvatureColorMapping::ColorMappingTag |
( |
| ) |
const |
◆ CRC32()
ON__UINT32 ON_SurfaceCurvatureColorMapping::CRC32 |
( |
| ) |
const |
◆ Hash()
const ON_SHA1_Hash ON_SurfaceCurvatureColorMapping::Hash |
( |
| ) |
const |
◆ HueRangeInRadians()
const ON_Interval ON_SurfaceCurvatureColorMapping::HueRangeInRadians |
( |
| ) |
const |
◆ IsSet()
bool ON_SurfaceCurvatureColorMapping::IsSet |
( |
| ) |
const |
- Returns
- If the curvature type, range, and hure range are set and valid, then true is returned. Otherwise false is returned.
◆ IsUnset()
bool ON_SurfaceCurvatureColorMapping::IsUnset |
( |
| ) |
const |
- Returns
- If one or more of the curvature type, range, and hure range are not set or are not valid, valid, then true is returned. Otherwise false is returned.
◆ KappaRange()
const ON_Interval ON_SurfaceCurvatureColorMapping::KappaRange |
( |
| ) |
const |
◆ KappaStyle()
◆ operator=()
◆ DefaultHueRangeRadians
const ON_Interval ON_SurfaceCurvatureColorMapping::DefaultHueRangeRadians |
|
static |
The default surface curvature color analysis hue range used by the Rhino CurvatureAnalysis command is 0 to 4pi/3 (red to blue)
◆ Id
const ON_UUID ON_SurfaceCurvatureColorMapping::Id |
|
static |
{639E9144-1C1A-4bba-8248-D330F50D7B69} The id ON_SurfaceCurvatureColorMapping::Id identifies the surface curvature color analysis used by the Rhino CurvatureAnalysis command and is used as the id for mapping tags that indicate per vertex colors were set from surface principal curvatures.
◆ Unset