Click or drag to resize

ILineCapAddGeometry Method

Adds the triangle geometry for this cap.

Namespace: Altaxo.Drawing.D3D
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
void AddGeometry(
	Action<PointD3D, VectorD3D> AddPositionAndNormal,
	Action<int, int, int, bool> AddIndices,
	ref int vertexIndexOffset,
	bool isStartCap,
	PointD3D basePoint,
	VectorD3D westVector,
	VectorD3D northVector,
	VectorD3D forwardVectorNormalized,
	ICrossSectionOfLine lineCrossSection,
	PointD3D[]? baseCrossSectionPositions,
	VectorD3D[]? baseCrossSectionNormals,
	ref Object?? temporaryStorageSpace
)

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. Must be actualized during this call.
isStartCap  Boolean
If set to true, a start cap is drawn; otherwise, an end cap is drawn.
basePoint  PointD3D
The base point of the cap.
westVector  VectorD3D
The west vector of the cross section.
northVector  VectorD3D
The north vector of the cross section.
forwardVectorNormalized  VectorD3D
The forward vector of the line or line segment. Must be normalized.
lineCrossSection  ICrossSectionOfLine
The line cross section.
baseCrossSectionPositions  PointD3D
The cross section positions at the base of the cap, or null if the line does not end at the cap base.
baseCrossSectionNormals  VectorD3D
The cross section normals at the base of the cap, or null.
temporaryStorageSpace  Object
Object which represents temporary storage space used by the cap. The storage space can be used again if the returned object is again provided in subsequent calls.
See Also