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
Call this method if your render meshes change.
public static void AllObjectsChanged()
obsoleteUse version that requires a document
Call this method if your render meshes change.
Returns a bounding box for the custom render meshes for the given object.
public virtual BoundingBox BoundingBox()
vp,
The viewport being rendered.
obj,
The Rhino object of interest. This can be null in the case where document meshes (not associated with any object) are being requested.
requestingPlugIn,
UUID of the RDK plug-in requesting the meshes.
preview
Type of mesh to build.
Returns: A bounding box value.
Build custom render mesh(es).
public abstract bool BuildCustomMeshes()
vp,
The viewport being rendered.
objMeshes,
The meshes class to populate with custom meshes.
requestingPlugIn,
UUID of the RDK plug-in requesting the meshes.
meshType
Type of mesh to build.
Returns: true if operation was successful.
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.
Determines if custom render meshes will be built for a particular object.
public abstract bool WillBuildCustomMeshes()
vp,
The viewport being rendered.
obj,
The Rhino object of interest. This can be null in the case where document meshes (not associated with any object) are being requested.
requestingPlugIn,
UUID of the RDK plug-in requesting the meshes.
preview
Type of mesh to build.
Returns: true if custom meshes will be built.