RenderMeshProviderHasCustomRenderMeshes Method |
Determine if custom render primitives will be supplied for a particular object.
Namespace:
Rhino.Render.CustomRenderMeshes
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax public abstract bool HasCustomRenderMeshes(
MeshType mt,
ViewportInfo vp,
RhinoDoc doc,
Guid objectId,
ref RenderMeshProviderFlags flags,
PlugIn plugin,
DisplayPipelineAttributes attrs
)
Public MustOverride Function HasCustomRenderMeshes (
mt As MeshType,
vp As ViewportInfo,
doc As RhinoDoc,
objectId As Guid,
ByRef flags As RenderMeshProviderFlags,
plugin As PlugIn,
attrs As DisplayPipelineAttributes
) As Boolean
Parameters
- mt
- Type: Rhino.GeometryMeshType
The mesh type to provide meshes for - vp
- Type: Rhino.DocObjectsViewportInfo
The viewport being rendered - doc
- Type: RhinoRhinoDoc
The Rhino document associated with the objectId - objectId
- Type: SystemGuid
The objectId for which the primitives should be supplied. - flags
- Type: Rhino.Render.CustomRenderMeshesRenderMeshProviderFlags
See Flags. - plugin
- Type: Rhino.PlugInsPlugIn
The requesting plug-in - typically the render plug-in requesting the primitives. - attrs
- Type: Rhino.DisplayDisplayPipelineAttributes
The display attributes currently being used - nullptr if this is production rendering.
Return Value
Type:
BooleanTrue if RenderMeshes will return a set of primitives, otherwise false. RenderMeshes may still return an empty collection - in case of cancelation something similar.
See Also