Show / Hide Table of Contents

Class MeshPrimitives

Contains some constant meshes

Inheritance
object
MeshPrimitives
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public static class MeshPrimitives

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(float, float)

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
float width
float height
Returns
Type Description
Vector3[]

ShapedPtHexPolygon(float, float)

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
float width
float height
Returns
Type Description
Vector3[]
In this article
Back to top Generated by DocFX