Click or drag to resize

SolidCubeAdd Method

Adds the geometry of a cube to the supplied vertex and index targets.

Namespace: Altaxo.Drawing.D3D
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static void Add(
	double _x,
	double _y,
	double _z,
	double _dx,
	double _dy,
	double _dz,
	Action<PointD3D, VectorD3D> AddPositionAndNormal,
	Action<int, int, int> AddIndices,
	ref int offset
)

Parameters

_x  Double
The x-coordinate of the cube origin.
_y  Double
The y-coordinate of the cube origin.
_z  Double
The z-coordinate of the cube origin.
_dx  Double
The cube size in x-direction.
_dy  Double
The cube size in y-direction.
_dz  Double
The cube size in z-direction.
AddPositionAndNormal  ActionPointD3D, VectorD3D
The callback that receives a position and its normal.
AddIndices  ActionInt32, Int32, Int32
The callback that receives one triangle as three indices.
offset  Int32
The vertex offset.
See Also