Click or drag to resize

SolidStraightLineDashSegmentAddGeometry(ActionPointD3D, VectorD3D, ActionInt32, Int32, Int32, Boolean, Int32, PointD3D, PointD3D, Boolean, ILineCap, ILineCap) Method

Adds the triangle geometry. Here, the position of the startcap base and of the endcap base is already calculated and provided in the arguments.

Namespace: Altaxo.Drawing.D3D
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public void AddGeometry(
	Action<PointD3D, VectorD3D> AddPositionAndNormal,
	Action<int, int, int, bool> AddIndices,
	ref int vertexIndexOffset,
	PointD3D lineStart,
	PointD3D lineEnd,
	bool drawLine,
	ILineCap? overrideStartCap,
	ILineCap? overrideEndCap
)

Parameters

AddPositionAndNormal  ActionPointD3D, VectorD3D
The procedure to add a vertex position and normal.
AddIndices  ActionInt32, Int32, Int32, Boolean
The procedure to add vertex indices for one triangle.
vertexIndexOffset  Int32
The vertex index offset.
lineStart  PointD3D
The line start. This is the precalculated base of the start line cap.
lineEnd  PointD3D
The line end. Here, this is the precalculated base of the end line cap.
drawLine  Boolean
If this parameter is true, the line segment between lineStart and lineEnd is drawn. If false, the line segment itself is not drawn, but the start end end caps are drawn.
overrideStartCap  ILineCap
If not null, this parameter override the start cap that is stored in this class.
overrideEndCap  ILineCap
If not null, this parameter overrides the end cap that is stored in this class.
Exceptions
ExceptionCondition
InvalidProgramExceptionThe structure is not initialized yet. Call Initialize before using it!
See Also