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
coreGeometryNode
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
DefaultBoundSphere
public static readonly BoundingSphere DefaultBoundSphere
Field Value
OnCheckGeometry
public GeometryBoundManager.OnCheckGeometryDelegate? OnCheckGeometry
Field Value
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
GeometryValid
public bool GeometryValid { get; }
Property Value
HasBound
public bool HasBound { get; set; }
Property Value
HasInstances
public bool HasInstances { get; }
Property Value
Instances
public IList<Matrix4x4>? Instances { get; set; }
Property Value
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
OnBoundSphereChanged
public event EventHandler<BoundChangeArgs<BoundingSphere>>? OnBoundSphereChanged
Event Type
OnTransformBoundChanged
public event EventHandler<BoundChangeArgs<BoundingBox>>? OnTransformBoundChanged
Event Type
OnTransformBoundSphereChanged
public event EventHandler<BoundChangeArgs<BoundingSphere>>? OnTransformBoundSphereChanged