Click or drag to resize

SolidPrimitive Class

Renders filled solid objects and their outlines. Example solids include boxes and ellipsoids. Various effects are supported, such as displaying the solid's silhouette, and hiding the outline of the backside of the solid. In cases where you just want to visualize a solid's fill or outline, a TriangleMeshPrimitive or PolylinePrimitive can be used for reduced overhead.
Inheritance Hierarchy

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

The SolidPrimitive type exposes the following members.

Constructors
  NameDescription
Public methodSolidPrimitive
Initializes a default solid primitive. This is equivalent to constructing a solid primitive with a SetHint of Frequent.
Public methodSolidPrimitive(SetHint)
Initializes a solid primitive with the specified setHint.
Top
Properties
  NameDescription
Public propertyAffectedByLighting
Gets or sets whether the primitive is affected by lighting.
Public propertyAutomaticallyComputeBoundingSphere
Gets or sets if the primitive's BoundingSphere is automatically computed.
(Inherited from Primitive.)
Public propertyBackLineColor
Gets or sets the back line's color.
Public propertyBackLineTranslucency
Gets or sets the back line's translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.
Public propertyBackLineWidth
Gets or sets the back line's width, in pixels.
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 propertyColor
Gets or sets the primitive's color.
(Inherited from Primitive.)
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 propertyDisplayFill
Gets or sets whether the solid's fill is displayed.
Public propertyDisplayOutline
Gets or sets whether the solid's outline is displayed.
Public propertyDisplaySilhouette
Gets or sets whether the solid's silhouette is displayed.
Public propertyStatic memberMaximumSilhouetteWidthSupported
Gets the maximum silhouette width, in pixels, supported by the video card.
Public propertyStatic memberMinimumSilhouetteWidthSupported
Gets the minimum silhouette width, in pixels, supported by the video card.
Public propertyOutlineAppearance
Gets or sets the outline's appearance.
Public propertyOutlineColor
Gets or sets the outline's color.
Public propertyOutlineTranslucency
Gets or sets the outline's translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.
Public propertyOutlineWidth
Gets or sets the outline's width, in pixels.
Public propertyPosition
Gets or sets the solid's position. The position is defined in the solid's ReferenceFrame.
Public propertyReferenceFrame
Gets or sets the reference frame this primitive is defined and rendered in.
(Inherited from Primitive.)
Public propertyRotation
Gets or sets the rotation applied to the solid before rendering.
Public propertyScale
Gets or sets a non-uniform scale that is applied to the solid to increase or decrease its rendered size.
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 propertySilhouetteColor
Gets or sets the silhouette's color.
Public propertySilhouetteTranslucency
Gets or sets the silhouette's translucency. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.
Public propertySilhouetteWidth
Gets or sets the silhouette' width, in pixels.
Public propertyTag
Gets or sets custom data associated with this primitive.
(Inherited from Primitive.)
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.)
Top
Methods
See Also