Table of Contents

Class GeomBoolCache

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

Cache for geometry boolean operations.

public class GeomBoolCache : IDisposable
Inheritance
GeomBoolCache
Implements
Inherited Members
Extension Methods

Constructors

GeomBoolCache(GeomBoolCacheEnum)

Initializes a new instance of the GeomBoolCache class.

public GeomBoolCache(GeomBoolCacheEnum boolGeomCacheEnum)

Parameters

boolGeomCacheEnum GeomBoolCacheEnum

The type of geometry boolean cache.

Properties

CachedTris

Gets or sets the cached triangles.

public CachedTris CachedTris { get; set; }

Property Value

CachedTris

ConvexTransformation

Gets or sets the convex transformation matrix. Defaults to the identity, which places the convex in its initial pose.

public mat4d_t ConvexTransformation { get; set; }

Property Value

mat4d_t

GeomBoolCacheEnum

Gets or sets the type of geometry boolean cache.

public GeomBoolCacheEnum GeomBoolCacheEnum { get; set; }

Property Value

GeomBoolCacheEnum

InitStickConvex

The share of the stick convex this cache subtracts with (see InitStickConvex). The cache owns the share it is handed and gives it back in Dispose(), so the native convex outlives the subtraction whatever the profile that built it does meanwhile (a ClearCache gives back the profile's own share only).

public InitStickConvex InitStickConvex { get; set; }

Property Value

InitStickConvex

PreferredCubeWidth

Gets or sets the preferred cube width.

public double PreferredCubeWidth { get; set; }

Property Value

double

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

Disposes what the cache owns: its CachedTris, and the share of the stick convex it was handed (InitStickConvex), given back here.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

True if disposing, false if finalizing.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.