Table of Contents

Class GeometryBoundManager

Namespace
HelixToolkit.SharpDX.Model.Components
Assembly
HelixToolkit.SharpDX.dll
public sealed class GeometryBoundManager : IDisposable
Inheritance
GeometryBoundManager
Implements
Inherited Members

Constructors

GeometryBoundManager(GeometryNode)

public GeometryBoundManager(GeometryNode core)

Parameters

core GeometryNode

Fields

Bounds

Gets the bounds. Usually same as OriginalBounds. If have instances, the bound will enclose all instances.

public BoundingBox Bounds

Field Value

BoundingBox

The bounds.

BoundsSphere

Gets the bounds sphere. Usually same as OriginalBoundsSphere. If have instances, the bound sphere will enclose all instances.

public BoundingSphere BoundsSphere

Field Value

BoundingSphere

The bounds sphere.

BoundsSphereWithTransform

Gets the bounds sphere with transform. If have transform, the bound is the transformed BoundsSphere

public BoundingSphere BoundsSphereWithTransform

Field Value

BoundingSphere

The bounds sphere with transform.

BoundsWithTransform

Gets the bounds with transform. Usually same as Bounds. If have transform, the bound is the transformed Bounds

public BoundingBox BoundsWithTransform

Field Value

BoundingBox

The bounds with transform.

DefaultBound

public static readonly BoundingBox DefaultBound

Field Value

BoundingBox

DefaultBoundSphere

public static readonly BoundingSphere DefaultBoundSphere

Field Value

BoundingSphere

OnCheckGeometry

public GeometryBoundManager.OnCheckGeometryDelegate? OnCheckGeometry

Field Value

GeometryBoundManager.OnCheckGeometryDelegate

OriginalBounds

Gets the original bound from the geometry. Same as Bound

public BoundingBox OriginalBounds

Field Value

BoundingBox

The original bound.

OriginalBoundsSphere

Gets the original bound sphere from the geometry. Same as BoundingSphere

public BoundingSphere OriginalBoundsSphere

Field Value

BoundingSphere

The original bound sphere.

Properties

Geometry

public Geometry3D? Geometry { get; set; }

Property Value

Geometry3D

GeometryValid

public bool GeometryValid { get; }

Property Value

bool

HasBound

public bool HasBound { get; set; }

Property Value

bool

HasInstances

public bool HasInstances { get; }

Property Value

bool

Instances

public IList<Matrix4x4>? Instances { get; set; }

Property Value

IList<Matrix4x4>

Methods

Dispose()

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

public void Dispose()

DisposeAndClear()

public void DisposeAndClear()

Events

OnBoundChanged

public event EventHandler<BoundChangeArgs<BoundingBox>>? OnBoundChanged

Event Type

EventHandler<BoundChangeArgs<BoundingBox>>

OnBoundSphereChanged

public event EventHandler<BoundChangeArgs<BoundingSphere>>? OnBoundSphereChanged

Event Type

EventHandler<BoundChangeArgs<BoundingSphere>>

OnTransformBoundChanged

public event EventHandler<BoundChangeArgs<BoundingBox>>? OnTransformBoundChanged

Event Type

EventHandler<BoundChangeArgs<BoundingBox>>

OnTransformBoundSphereChanged

public event EventHandler<BoundChangeArgs<BoundingSphere>>? OnTransformBoundSphereChanged

Event Type

EventHandler<BoundChangeArgs<BoundingSphere>>