Click or drag to resize
AB4D logo

Model3DFactoryCreateTrapezoid(Point3D, Size, Point3D, Size, Vector3D, Vector3D, Material) Method

Creates a 3D Trapezoid model with custom direction that is specified with sizeWidthVector3D and sizeHeightVector3D.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static GeometryModel3D CreateTrapezoid(
	Point3D bottomCenterPosition,
	Size bottomSize,
	Point3D topCenterPosition,
	Size topSize,
	Vector3D sizeWidthVector3D,
	Vector3D sizeHeightVector3D,
	Material material
)

Parameters

bottomCenterPosition  Point3D
center position of the bottom rectangle
bottomSize  Size
2D size of the bottom rectangle
topCenterPosition  Point3D
center position of the top rectangle
topSize  Size
2D size of the top rectangle
sizeWidthVector3D  Vector3D
Vector3D that defines the direction of the width in the bottomSize and topSize. With upright trapezoid this value is (1, 0, 0) - x axis
sizeHeightVector3D  Vector3D
Vector3D that defines the direction of the height in the bottomSize and topSize. With upright trapezoid this value is (0, 0, 1) - z axis
material  Material
material

Return Value

GeometryModel3D
3D Trapezoid model as GeometryModel3D
See Also