Click or drag to resize

TriangleMeshPrimitive Class

Renders a triangle mesh in the 3D scene. Examples of triangle meshes include polygons on the globe (e.g. states or countries), terrain and imagery extents, ellipses, and extrusions.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsPrimitive
    AGI.Foundation.GraphicsTriangleMeshPrimitive

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public sealed class TriangleMeshPrimitive : Primitive

The TriangleMeshPrimitive type exposes the following members.

Constructors
  NameDescription
Public methodTriangleMeshPrimitive
Initializes a default triangle mesh primitive. This is equivalent to constructing a triangle mesh with a SetHint of Frequent.
Public methodTriangleMeshPrimitive(SetHint)
Initializes a triangle mesh primitive with the specified setHint .
Top
Properties
  NameDescription
Public propertyAutomaticallyComputeBoundingSphere
Gets or sets if the primitive's BoundingSphere is automatically computed.
(Inherited from Primitive.)
Public propertyBlendingColor
Gets or sets the blending color.
Public propertyBlendingEquation
Gets or set the blending equation used when compositing a transparent triangle mesh.
Public propertyBoundingSphere
Gets or sets the bounding sphere that encompasses the primitive. The center is defined in the primitive's ReferenceFrame.
(Inherited from Primitive.)
Public propertyCentralBodyClipped
Gets or sets whether individual points will be clipped by the central body.
Public propertyColor
Gets or sets the primitive's color.
(Inherited from Primitive.)
Public propertyCullFace
Gets or sets whether front and/or back-facing triangles may be culled. This is used in combination with TriangleWindingOrder for culling.
Public propertyDestinationBlendingFunction
Gets or set the blending function that is used to modify the destination color before the final blending operation occurs.
Public propertyDisplay
Gets or sets if the primitive should be rendered. Both this and DisplayCondition must evaluate to true for the primitive to be rendered.
(Inherited from Primitive.)
Public propertyDisplayCondition
Gets or sets the display condition that determines if the primitive should be rendered. Both this and Display must evaluate to true for the primitive to be rendered.
(Inherited from Primitive.)
Public propertyLighting
Gets or sets whether the primitive is lit.
Public propertyReferenceFrame
Gets or sets the reference frame this primitive is defined and rendered in.
(Inherited from Primitive.)
Public propertyRenderBackThenFrontFaces
Gets or sets whether the primitive is rendered in two passes to improve the visual quality for translucent, convex meshes.
Public propertySetHint
Gets the primitive's SetHint. See the Set Hint topic for more information on selecting an appropriate value to construct the primitive with.
Public propertyShadeModel
Gets or sets the shading model for the mesh.
Public propertySourceBlendingFunction
Gets or set the blending function that is used to modify the source color before the final blending operation occurs.
Public propertyTag
Gets or sets custom data associated with this primitive.
(Inherited from Primitive.)
Public propertyTexture
Gets or sets the texture to be drawn on the triangle mesh. Textures can be obtained from SceneManager.Textures.
Public propertyTextureFilter
Gets or sets the filter used for the Texture associated with this triangle mesh.
Public propertyTranslucency
Gets or sets the primitive's translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.
(Overrides PrimitiveTranslucency.)
Public propertyTriangleWindingOrder
Gets or sets the orientation of front-facing triangles. This is used in combination with CullFace for culling.
Public propertyUseCustomBlendingParameters
Gets or set the boolean that defines if custom blending parameters will be used or if it will use the blending parameters set by the particular rendering pass.
Public propertyWireframe
Gets or sets whether the primitive is rendered in wireframe. This is useful for debugging.
Top
Methods
  NameDescription
Public methodDispose (Inherited from Primitive.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(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.)
Public methodSet(TriangulatorResult)
Defines the triangle mesh using the specified triangulator. The mesh is rendered in the primitive's ReferenceFrame.
Public methodSet(IEnumerableCartesian, IEnumerableCartesian, IEnumerableInt32)
Defines the triangle mesh using an indexed triangle list specified by positions, normals, and indices. The mesh is rendered in the primitive's ReferenceFrame.
Public methodSet(IEnumerableCartesian, IEnumerableCartesian, IEnumerableInt32, TriangleMeshPrimitiveOptionalParameters)
Defines the triangle mesh using an indexed triangle list specified by positions, normals, indices, and optionalParameters. The mesh is rendered in the primitive's ReferenceFrame.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also