Show / Hide Table of Contents

Class MeshPrimitives

Contains some constant meshes

Inheritance
System.Object
MeshPrimitives
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public static class MeshPrimitives : Object

Properties

Cube

MeshData for a unity cube centered at the origin.

Declaration
public static MeshData Cube { get; }
Property Value
Type Description
MeshData

FtHexPolygon

Vertices of a flat-topped polygon with with 0.5 inradius.

Declaration
public static Vector3[] FtHexPolygon { get; }
Property Value
Type Description
Vector3[]

PtHexPolygon

Vertices of a pointy-topped regular hexagon with 0.5 inradius.

Declaration
public static Vector3[] PtHexPolygon { get; }
Property Value
Type Description
Vector3[]

Methods

ShapedFtHexPolygon(Single, Single)

Vertices of a flat-topped hexagon that fits inside an origin centered rectangle of size width by height.

Declaration
public static Vector3[] ShapedFtHexPolygon(float width, float height)
Parameters
Type Name Description
System.Single width
System.Single height
Returns
Type Description
Vector3[]

ShapedPtHexPolygon(Single, Single)

Vertices of a pointy-topped hexagon that fits inside an origin centered rectangle of size width by height.

Declaration
public static Vector3[] ShapedPtHexPolygon(float width, float height)
Parameters
Type Name Description
System.Single width
System.Single height
Returns
Type Description
Vector3[]
In This Article
Back to top Generated by DocFX