Click or drag to resize

RenderContentAddPersistentRenderContent Method (RhinoDoc, RenderContent)

Note: This API is now obsolete.

Add a material, environment or texture to the internal RDK document lists as top level content. The content must have been returned from RenderContent::MakeCopy, NewContentFromType or a similar function that returns a non-document content. Obsolete - use RhinoDoc.RenderMaterials.Add or similar.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.0
[ObsoleteAttribute("Use RhinoDoc.RenderMaterials.Add")]
public static bool AddPersistentRenderContent(
	RhinoDoc document,
	RenderContent renderContent


Type: RhinoRhinoDoc
The document to attach the render content to.
Type: Rhino.RenderRenderContent
The render content.

Return Value

Type: Boolean
true on success.
See Also