#include <opennurbs_plus_sil.h>
◆ SilhouetteTypes
Enumerator |
---|
kUnsetSilhouetteType | |
kParallelProjection | |
kPerspectiveProjection | |
kDraftAngle | |
◆ ON_SilhouetteParameters()
ON_SilhouetteParameters::ON_SilhouetteParameters |
( |
| ) |
|
◆ AngleToleranceRadians()
double ON_SilhouetteParameters::AngleToleranceRadians |
( |
| ) |
const |
◆ DraftAngleRadians()
double ON_SilhouetteParameters::DraftAngleRadians |
( |
| ) |
const |
Returns: If SilhouetteType() is kDraftAngle then the function returns the draft angle setting, otherwise the function returns ON_UNSET_VALUE.
◆ DraftPullDirection()
ON_3dVector ON_SilhouetteParameters::DraftPullDirection |
( |
| ) |
const |
◆ GetTypeMask()
unsigned int ON_SilhouetteParameters::GetTypeMask |
( |
| ) |
const |
Description: For parallel or perspective view silhouette calculations this type mask selects which of the optional ON_SIL_EVENT types are produced by calls to the silhouette finder. Only the following types are optional
kSilBoundary - include kSilBoundary events in the results kNonSilCrease - include kNonSilCrease events in the results kNonSilTangent - includekNonSilTangent events in the results kNonSilSeam - include kNonSilSeam events in the results
The default value is ON_SIL_EVENT::kSilBoundary Details: For example the Silhouette command in Rhino uses kSilBoundary | kNonSilCrease So that all boundaries and creased edges are shown.
◆ ParallelCameraDirection()
ON_3dVector ON_SilhouetteParameters::ParallelCameraDirection |
( |
| ) |
const |
◆ PerspectiveCameraLocation()
ON_3dPoint ON_SilhouetteParameters::PerspectiveCameraLocation |
( |
| ) |
const |
Returns: If SilhouetteType() is kPerspectiveProjection then the function returns the camera location otherwise the function returns ON_3dPoint::UnsetVector.
◆ SetDraftCurve()
bool ON_SilhouetteParameters::SetDraftCurve |
( |
ON_3dVector |
pullDirection, |
|
|
double |
draftAngleRadians, |
|
|
double |
tolerance, |
|
|
double |
angleToleranceRadians |
|
) |
| |
Description: Specify the parameters for calculating draft curves. The draft curve separates the regions with draft at least equal to the draft angle from regions with draft less than the draft angle. Parameters: pullDirection -[in] 3d direction for the mold to be pulled in, directed away from the object draftAngleRadians -[in] draft angle can be positive or negative tolerance - [in] angleToleranceRadians -[in]
◆ SetParallel()
bool ON_SilhouetteParameters::SetParallel |
( |
ON_3dVector |
cameraDirection, |
|
|
double |
tolerance, |
|
|
double |
angleToleranceRadians |
|
) |
| |
Description: Specify the parameters for calculating parallel view silhouettes. Parameters: cameraDirection -[in] 3d camera direction, directed toward the scene. tolerance - [in] A surface which projects in the image plane to within tolerance of a curve may be reported as a projecting surface. When in doubt use CRhinoDoc::AbsoluteTolerance(). angleToleranceRadians -[in] A surface with unit normal N that satisfies N o cameraDirection < sin( angleToleranceRadians) may be reported as projecting surface. When in doubt use CRhinoDoc::AngleToleranceRadians().
◆ SetPerspective()
bool ON_SilhouetteParameters::SetPerspective |
( |
ON_3dPoint |
cameraLocation, |
|
|
double |
tolerance, |
|
|
double |
angleToleranceRadians |
|
) |
| |
Description: Specify the parameters for calculating perspective view silhouettes. Parameters: cameraLocation -[in] 3d camera location tolerance - [in] A surface which projects in the image plane to within tolerance of a curve may be treated as projecting surface. When in doubt use CRhinoDoc::AbsoluteTolerance(). angleToleranceRadians -[in] A surface with unit normal N that satisfies N o cameraDirection < sin( angleToleranceRadians) may be considered projecting. When in doubt use CRhinoDoc::AngleToleranceRadians().
◆ SetTypeMask()
void ON_SilhouetteParameters::SetTypeMask |
( |
unsigned int |
m_mask | ) |
|
◆ SilhouetteType()
Description: Returns the silhouette type setting.
◆ Tolerance()
double ON_SilhouetteParameters::Tolerance |
( |
| ) |
const |
◆ ViewDirection()
Description: Find the unit view direction from the camera to the given 3dPoint P0. Parameters: P0 - [in] Details: For parallel views ViewDirection does not depend on P0.
◆ kAllOptionalTypes
const static unsigned int ON_SilhouetteParameters::kAllOptionalTypes |
|
static |
Initial value:=
ON_SIL_EVENT::TYPE::kSilBoundary |
ON_SIL_EVENT::TYPE::kNonSilCrease |
ON_SIL_EVENT::TYPE::kNonSilTangent |
ON_SIL_EVENT::TYPE::kNonSilSeam
◆ UnsetParameters