CustomRenderMeshProvider

References
public abstract class CustomRenderMeshProvider
You 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

CustomRenderMeshProvider

#Obsolete v6.0
Default constructor
protected CustomRenderMeshProvider()

Properties

CurvePipingId

#Since v6.0 Obsolete v6.0
public static Guid CurvePipingId { get; }

DisplacementId

#Since v6.0 Obsolete v6.0
public static Guid DisplacementId { get; }

EdgeSofteningId

#Since v6.0 Obsolete v6.0
public static Guid EdgeSofteningId { get; }

Name

#Since v5.7 Obsolete v6.0
The name of the provider for UI display.
public abstract string Name { get; }

ShutLiningId

#Since v6.0 Obsolete v6.0
public static Guid ShutLiningId { get; }

ThickeningId

#Since v6.0 Obsolete v6.0
public static Guid ThickeningId { get; }

Methods

AllObjectsChanged

#Since v5.7 Obsolete v6.0
Call this method if your render meshes change.
public static void AllObjectsChanged()
obsoleteUse version that requires a document

AllObjectsChanged

#Since v6.0 Obsolete v6.0
Call this method if your render meshes change.
public static void AllObjectsChanged()

BoundingBox

#Since v5.7 Obsolete v6.0
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.
)
A bounding box value.

BoundingBox

#Since v6.0 Obsolete v6.0
public BoundingBox BoundingBox()

BuildCustomMeshes

#Since v5.7 Obsolete v6.0
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.
)
true if operation was successful.

DocumentBasedMeshesChanged

#Since v6.0 Obsolete v6.0
public static void DocumentBasedMeshesChanged()

ObjectChanged

#Since v6.0 Obsolete v6.0
public static void ObjectChanged()

RegisterProviders

#Since v5.7 Obsolete v6.0
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 static void RegisterProviders(
assembly,
Assembly to search for valid CustomRenderMeshProvider derived classes.
pluginId
The plug-in that owns the custom mesh providers.
)

WillBuildCustomMeshes

#Since v5.7 Obsolete v6.0
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.
)
true if custom meshes will be built.