SilhouetteCompute Method (GeometryBase, SilhouetteType, Point3d, Double, Double, IEnumerablePlane, CancellationToken) |
Compute silhouettes of a shape for a perspective projection.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax public static Silhouette[] Compute(
GeometryBase geometry,
SilhouetteType silhouetteType,
Point3d perspectiveCameraLocation,
double tolerance,
double angleToleranceRadians,
IEnumerable<Plane> clippingPlanes,
CancellationToken cancelToken
)
Public Shared Function Compute (
geometry As GeometryBase,
silhouetteType As SilhouetteType,
perspectiveCameraLocation As Point3d,
tolerance As Double,
angleToleranceRadians As Double,
clippingPlanes As IEnumerable(Of Plane),
cancelToken As CancellationToken
) As Silhouette()
Parameters
- geometry
- Type: Rhino.GeometryGeometryBase
Geometry whose silhouettes need to be computed. Can be Brep, BrepFace, Mesh, or Extrusion. - silhouetteType
- Type: Rhino.GeometrySilhouetteType
Types of silhouette to compute. - perspectiveCameraLocation
- Type: Rhino.GeometryPoint3d
Location of perspective camera. - tolerance
- Type: SystemDouble
Tolerance to use for determining projecting relationships.
Surfaces and curves that are closer than tolerance, may be treated as projecting.
When in doubt use RhinoDoc.ModelAbsoluteTolerance. - angleToleranceRadians
- Type: SystemDouble
Angular tolerance to use for determining projecting relationships.
A surface normal N that satisfies N o cameraDirection < Sin(angleToleranceRadians) may be considered projecting.
When in doubt use RhinoDoc.ModelAngleToleranceRadians. - clippingPlanes
- Type: System.Collections.GenericIEnumerablePlane
Optional collection of clipping planes. - cancelToken
- Type: System.ThreadingCancellationToken
Computation cancellation token.
Return Value
Type:
SilhouetteArray of silhouette curves.
See Also