Click or drag to resize

TriangulatedSensorProjection Class

A SensorProjection that has been triangulated for rendering. In order to minimize memory allocations, an instance of this class can be re-used for multiple projections. Each time that UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) is called, the triangulation is updated.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.Graphics.AdvancedTriangulatedSensorProjection

Namespace:  AGI.Foundation.Graphics.Advanced
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public class TriangulatedSensorProjection

The TriangulatedSensorProjection type exposes the following members.

Constructors
  NameDescription
Public methodTriangulatedSensorProjection
Initializes a new instance.
Top
Properties
  NameDescription
Public propertyMaximumRadius
Gets the maximum distance of any position in MeshVertexPositions from the SensorOrigin as of the last time that UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) was called.
Public propertyMeshOutlineIndices
Gets the vertex indices defining the outline lines of the mesh. Each pair of indices defines one line segment. The returned array will always have at least two elements. If the sensor has no outline, the two indices will be both be zero.
Public propertyMeshVertexIndices
Gets the vertex indices defining the triangles of the sensor mesh. Each set of three indices defines one triangle with counter-clockwise winding order. If the sensor has no projection, this property returns . When UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) is called, the content of this array may be modified, or a new array may be created.
Public propertyMeshVertexNormals
Gets the normals of the vertices defining the sensor volume mesh. If the sensor has no projection, this property returns . When UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) is called, the content of this array may be modified, or a new array may be created.
Public propertyMeshVertexPositions
Gets the positions of the vertices defining the sensor volume mesh. If the sensor has no projection, this property returns . When UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) is called, the content of this array may be modified, or a new array may be created.
Public propertySensorOrigin
Gets the origin of the sensor as of the last time that UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) was called.
Top
Methods
  NameDescription
Public methodComputeSurfaceBoundaryLines
Gets the boundary lines of the portions of the sensor that intersected with the surface of the central body as of the last call to UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32). Each pair of positions in the returned array defines a line segment on the surface. The line segments are not necessarily all connected. If there are no intersections with the central body, this method returns an empty array. When UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) is called, the content of the returned array may be modified.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTriangulateSurfaceRegions
Triangulates the portions of the sensor that intersected with the surface of the central body as of the last call to UpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32) and returns a SurfaceTriangulatorResult for each distinct region. If the sensor has no projection, this property returns an empty collection.
Public methodUpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32)
Updates the triangulation from a given sensor projection.
Public methodUpdateFromNewProjection(CentralBody, Cartesian, SensorProjection, Int32, Boolean)
Updates the triangulation from a given sensor projection.
Top
See Also