PlaneIntersectionCache Class |
Data that
GeometryPlane(GeometryBase, Plane, Double, Boolean, Boolean, RhinoDoc, Transform, PlaneIntersectionCache, CancellationToken, Curve, Point3d)
computes from the geometry alone, kept between calls: the mesh intersection data of a mesh, and the Brep
a SubD, Extrusion, Surface or BrepFace converts to. Reuse one cache for many planes through the same geometry,
such as a contour stack.
Inheritance HierarchySystemObject
Rhino.Geometry.IntersectPlaneIntersectionCache
Namespace:
Rhino.Geometry.Intersect
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic sealed class PlaneIntersectionCache : IDisposable
Public NotInheritable Class PlaneIntersectionCache
Implements IDisposable
The PlaneIntersectionCache type exposes the following members.
Constructors
Methods|
| Name | Description |
|---|
 | Clear |
Removes all entries, and releases the geometry the cache kept alive.
|
 | Dispose |
Releases the native cache.
|
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
 | Finalize |
Releases the native cache.
(Overrides ObjectFinalize.) |
 | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
Entries are keyed by the native geometry. The cache keeps each geometry it is used with alive until
Clear or
Dispose, so a new object cannot take over the entry of a collected one.
Call
Clear when a geometry used with the cache, or an instance definition it references,
is changed in place; not while the cache is in use.
One cache can be used from several threads at the same time.
See Also