Share

TriangleGraphics Object

Derived from: GraphicsPrimitive Object

Description

The TriangleGraphics object defines a set of disconnected triangles. Each set of three coordinates defines a triangle.

Methods

Name Description
Delete Method that deletes the graphics primitive.
GetCustomImage Method that gets the image used for this TriangleGraphics object.
GetTransformBehavior Returns the current view transformation settings (e.g. pixel scaling and front facing).
GetViewSpaceAnchor Method that gets the anchor information of the graphics object. This method returns an error if the 'Anchored' property returns False.
RemoveViewSpaceAnchor The RemoveViewSpaceAnchor method removes the view space anchor from the object, and sets the Anchored property to false.
SetCustomImage Method that sets the custom image to use for this TriangleGraphics object.
SetTransformBehavior Sets the view transformation settings (e.g. pixel scaling and front facing).
SetViewSpaceAnchor Method that anchors the graphics object at the specified point in view space. The Anchored property is set to True.

Properties

Name Description
Anchored Property that indicates whether this graphics primitive is anchored in view space. This property can only be set to False. The Anchored property is automatically set to True by the SetViewSpaceAnchor method.
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
BackFaceCulling Gets and sets how the back face culling are defined for the triangles.
BurnThrough Read-write property that specifies whether or not graphics are always visible even if they are blocked by other object.
ColorBinding Gets and sets how the colors are defined for the triangle.
ColorIndexSet Gets and sets the GraphicsIndexSet that defines the indices within the GraphicsColorSet to use.
ColorMapper Read-write property that gets and sets the GraphicsColorMapper object associated with the set.
ColorSet Gets and sets the GraphicsColorSet associated with the set.
CoordinateIndexSet Get and sets the GraphicsIndexSet that defines the indices within the coordinate set to use for the triangles of the set.
CoordinateSet Gets and sets the GraphicsCoordinateSet associated with the set.
DepthPriority Read-write property that allows you to specify a priority to a set.
HasCustomImage Read-write property that gets and sets whether a custom image is set for this TriangleGraphics object.
Id Read-only property that returns the Id of the object.
NormalBinding Gets and sets how the normals are defined for the triangles.
NormalIndexSet Gets and sets the GraphicsIndexSet that defines the indices within the normal set to use for the triangles of the set.
NormalSet Gets and sets the GraphicsNormalSet associated with the set.
Parent Property that returns the parent object from whom this object can logically be reached.
RangeBox Property that returns a Box object which contains the opposing points of a rectangular box that is guaranteed to enclose this object.
TextureCoordinateIndexSet Read-write property that gets and sets the GraphicsCoordinateIndexSet that defines the indices within the texture coordinate set to use for the triangles of the set.
TextureCoordinateSet Read-write property that gets and sets the GraphicsCoordinateSet associated with the set.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

GraphicsNode.AddTriangleGraphics, GraphicsNodeProxy.AddTriangleGraphics

Samples

Name Description
Client graphics texture-based color mapping This test applies texture coordinates expressing distance from the origin to 'the triangle mesh of whatever Part you have open. It then creates either a discrete-band or continuous color mapper and allows you to adjust the values of the mapper to change the range of values that map to various colors.
Client Graphics - Vertex Color by Z Height This sample demonstrates using client graphics and some other functions that help to support display control. It uses the currently active part and replaces the part display with a display where the part's color varies from blue to red where blue is assigned to the lowest Z portion of the part and red is assigned to the highest Z portion of the part. Areas in between are represented by a smooth blend of color from blue to red.

Version

Introduced in version 5

Was this information helpful?