VectorPrimitiveFactory#

class ansys.stk.core.graphics.VectorPrimitiveFactory#

Render a vector in the 3D scene. A vector is defined by a source (given by a reference frame) and a direction (given by a vector). Length is auto-calculated or can be set separately.

Overview#

initialize_with_direction

Initialize a vector primitive with the specified reference frame as its source and pointing in direction dir.

Import detail#

from ansys.stk.core.graphics import VectorPrimitiveFactory

Method detail#

VectorPrimitiveFactory.initialize_with_direction(self, reference_frame: IVectorGeometryToolSystem, dir: IVectorGeometryToolVector, font: GraphicsFont) VectorPrimitive#

Initialize a vector primitive with the specified reference frame as its source and pointing in direction dir.

Parameters:

reference_frame : IVectorGeometryToolSystem

dir : IVectorGeometryToolVector

font : GraphicsFont

Returns:

VectorPrimitive