Click or drag to resize

ContourShapedLineCapBaseGetNormalVector Method

Calculates the normal to a extruded contour. Here the extrusion direction is fixed to z-direction.

Namespace: Altaxo.Drawing.D3D.LineCaps
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
protected static VectorD3D GetNormalVector(
	PointD2D crossSectionPoint,
	VectorD2D crossSectionNormal,
	VectorD2D contourNormal,
	double contourZScale
)

Parameters

crossSectionPoint  PointD2D
Original cross section point coordinates.
crossSectionNormal  VectorD2D
Original cross section normal.
contourNormal  VectorD2D
Original contour normal.
contourZScale  Double
Factor that is multiplied with the x-coordinate of the contour point to return the z-coordinate of the resulting contour.

Return Value

VectorD3D
The normal of the extruded contour (x-y is the cross section plane, z the extrusion direction). This vector has then to be transformed into the 3D-space of the body.
See Also