Description:

Call this method to get a Cone primitive for this mesh. If this meshes PrimitiveType is not a Rhino.Render.RenderPrimitiveType.Cone then the cone parameter is set to Cone.Unset and the truncation parameter is set to Plane.Unset .

Syntax:
public bool TryGetCone(
out Cone cone,
out Plane truncation
)
Parameters:
  • cone
  • Type: Cone
  • Gets set to the cone primitive for this object on success or Cone.Unset on error.
  • truncation
  • Type: Plane
  • Gets set to the truncation plane for this object on success or Plane.Unset on error.
Returns:
Type: bool
Returns True if <b>PrimitiveType</b> is <b>Rhino.Render.RenderPrimitiveType.Cone</b> and the cone and truncation parameters were initialized otherwise returns false.
Available since:
5.7

TryGetCone method

Class:  Rhino.Render.RenderPrimitive

Nothing found