Click or drag to resize
AB4D logo

LatheMesh3D(Point3D, Point3D, LatheSection, Int32, Boolean, Boolean, Boolean, Double, Double, Boolean) Constructor

Constructor that takes additional startAngle, endAngle and isMeshClosed as parameters.

Namespace: Ab3d.Meshes
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public LatheMesh3D(
	Point3D startPosition,
	Point3D endPosition,
	LatheSection[] sections,
	int segments,
	bool isStartPositionClosed,
	bool isEndPositionClosed,
	bool generateTextureCoordinates,
	double startAngle,
	double endAngle,
	bool isMeshClosed
)

Parameters

startPosition  Point3D
Point3D that defined the start position of the 3D object (center of the circle defined by the first section)
endPosition  Point3D
Point3D that defined the end position of the 3D object (center of the circle defined by the last section)
sections  LatheSection
array of LatheSections that define the offsets and radiuses for the sections
segments  Int32
number of segments that define the circles used to create sections
isStartPositionClosed  Boolean
if true than first section is closed; if false than there is a whole at the start position
isEndPositionClosed  Boolean
if true than last section is closed
generateTextureCoordinates  Boolean
if true than texture coordinates are generated (created mesh is more complicated in this case)
startAngle  Double
angle in degrees where the lathe process starts (0 in normal lathe mesh)
endAngle  Double
angle in degrees where the lathe process ends (360 in normal lathe mesh)
isMeshClosed  Boolean
when true then the mesh is closed between start and end angle.
See Also