Skip to content

MeshUnsafeLock

Public Class

Permits access to the underlying mesh raw data structures in an unsafe way.

Inheritance Hierarchy

System.Object
Rhino.Geometry.MeshUnsafeLock

Namespace: Rhino.Geometry

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public sealed class MeshUnsafeLock : IDisposable

The MeshUnsafeLock type exposes the following members.

Methods

Name

Description


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method

Retrieves a pointer to the raw mesh face normals array, which uses vectors defined with single precision floating point numbers, or throws an exception if none is available.


Public Method

Retrieves a pointer to the raw faces array, which uses 4 integers for each face. MeshFace.


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Retrieves a pointer to the raw mesh vertex normal array, which uses vectors defined with single precision floating point numbers, or throws an exception if none is available.


Public Method

Releases the lock and updates the underlying unmanaged data structures.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

Retrieves a pointer to the raw mesh vertex colors array, which uses RGBA integers or throws an exception if none is available.


Public Method
VertexPoint3dArray

Retrieves a pointer to the raw mesh vertex array, which uses coordinates defined with double precision floating point numbers, or throws an exception if none is available.


Public Method
VertexPoint3fArray

Retrieves a pointer to the raw mesh vertex array, which uses coordinates defined with single precision floating point numbers, or null if none is available.


Remarks

This lock object needs to be disposed before using the Mesh in other calculations and this can be achieved with the using keyword (Using in VB.Net).