Click or drag to resize

HostUtilsInPlaceConstCast Method

DO NOT USE UNLESS YOU ARE CERTAIN ABOUT THE IMPLICATIONS.

This is an expert user function which should not be needed in most cases. This function is similar to a const_cast in C++ to allow an object to be made temporarily modifiable without causing RhinoCommon to convert the class from const to non-const by creating a duplicate.

You must call this function with a true parameter, make your modifications, and then restore the const flag by calling this function again with a false parameter. If you have any questions, please contact McNeel developer support before using!

Namespace:  Rhino.Runtime
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static void InPlaceConstCast(
	GeometryBase geometry,
	bool makeNonConst
)

Parameters

geometry
Type: Rhino.GeometryGeometryBase
Some geometry.
makeNonConst
Type: SystemBoolean
A boolean value.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also