Creates a new polygon.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XMeshSprite AddPolygon(
	float x,
	float y,
	float z,
	float height,
	float bevelX,
	float bevelZ,
	Bitmap bitmap,
	params float[] points
)

Parameters

x
Type: System..::.Single
The X-coordinate.
y
Type: System..::.Single
The Y-coordinate.
z
Type: System..::.Single
The X-coordinate.
height
Type: System..::.Single
An object height.
bevelX
Type: System..::.Single
Bevel in X-axis.
bevelZ
Type: System..::.Single
Bevel in Z-axis.
bitmap
Type: System.Drawing..::.Bitmap
The Bitmap bitmap on the object surface.
points
Type: array< System..::.Single >[]()[]
Individual points of an object entered in order x1, y1, x2, y2 ...

Return Value

Returns the newly created ray.

See Also