CustomRenderMeshProvider
ReferencesYou must call CustomRenderMeshProvider.RegisterProviders() from your plug-ins OnLoad override for each assembly containing a custom mesh provider. Only publicly exported classes derived from CustomRenderMeshProvider with a public constructor that has no parameters will get registered.
Constructors
Properties
The name of the provider for UI display.
Methods
public static void AllObjectsChanged()
obsoleteUse version that requires a document
Call this method if your render meshes change.
Call this method if your render meshes change.
Parameters:
| doc (RhinoDoc) |
public virtual BoundingBox BoundingBox(ViewportInfo vp, RhinoObject obj, Guid requestingPlugIn, bool preview)
Returns a bounding box for the custom render meshes for the given object.
Parameters:
| vp (ViewportInfo) | The viewport being rendered. |
| obj (RhinoObject) | The Rhino object of interest. This can be null in the case where document meshes (not associated with any object) are being requested. |
| requestingPlugIn (Guid) | UUID of the RDK plug-in requesting the meshes. |
| preview (bool) | Type of mesh to build. |
Returns: A bounding box value.
public BoundingBox BoundingBox(ViewportInfo vp, RhinoObject obj, RhinoDoc doc, Guid requestingPlugIn, DisplayPipelineAttributes attrs)
Parameters:
| vp (ViewportInfo) | |
| obj (RhinoObject) | |
| doc (RhinoDoc) | |
| requestingPlugIn (Guid) | |
| attrs (DisplayPipelineAttributes) |
public abstract bool BuildCustomMeshes(ViewportInfo vp, RenderPrimitiveList objMeshes, Guid requestingPlugIn, bool meshType)
Build custom render mesh(es).
Parameters:
| vp (ViewportInfo) | The viewport being rendered. |
| objMeshes (RenderPrimitiveList) | The meshes class to populate with custom meshes. |
| requestingPlugIn (Guid) | UUID of the RDK plug-in requesting the meshes. |
| meshType (bool) | Type of mesh to build. |
Returns: true if operation was successful.
Parameters:
| doc (RhinoDoc) |
Parameters:
| doc (RhinoDoc) | |
| obj (RhinoObject) |
Call this method once from your plug-ins OnLoad override for each assembly containing a custom mesh provider. Only publicly exported classes derived from CustomRenderMeshProvider with a public constructor that has no parameters will get registered.
public abstract bool WillBuildCustomMeshes(ViewportInfo vp, RhinoObject obj, Guid requestingPlugIn, bool preview)
Determines if custom render meshes will be built for a particular object.
Parameters:
| vp (ViewportInfo) | The viewport being rendered. |
| obj (RhinoObject) | The Rhino object of interest. This can be null in the case where document meshes (not associated with any object) are being requested. |
| requestingPlugIn (Guid) | UUID of the RDK plug-in requesting the meshes. |
| preview (bool) | Type of mesh to build. |
Returns: true if custom meshes will be built.