Click or drag to resize

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
)

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: Boolean
True 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