RhinoCommon API
RenderPrimitiveTryGetCone Method |
Call this method to get a Cone primitive for this mesh. If this
meshes PrimitiveType is not a Cone
then the cone parameter is set to Unset and the truncation
parameter is set to Unset.
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.7

public bool TryGetCone( out Cone cone, out Plane truncation )
Public Function TryGetCone ( <OutAttribute> ByRef cone As Cone, <OutAttribute> ByRef truncation As Plane ) As Boolean
Parameters
- cone
- Type: Rhino.GeometryCone
Gets set to the cone primitive for this object on success or Unset on error. - truncation
- Type: Rhino.GeometryPlane
Gets set to the truncation plane for this object on success or Unset on error.
Return Value
Type: BooleanReturns true if PrimitiveType is Cone and the cone and truncation parameters were initialized otherwise returns false.
