Show / Hide Table of Contents

Class CreatePrimitiveGeometry

This class provides public methods to create primitive geometry from scratch. The Geometry is stored in DCEL

Inheritance
System.Object
CreatePrimitiveGeometry
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Jometri
Assembly: Fusee.Jometri.dll
Syntax
public class CreatePrimitiveGeometry

Methods

CreateConeGeometry(Single, Single, Int32)

Creates and returns a cone with the given dimensions.

Declaration
public static Geometry CreateConeGeometry(float baseRadius, float dimensionY, int sliceCount)
Parameters
Type Name Description
System.Single baseRadius

The radius of the base circle.

System.Single dimensionY

The height of the cone.

System.Int32 sliceCount

The horizontal resolution of the base circle. Min value is 3. For a basic cone 15.

Returns
Type Description
Geometry

CreateCuboidGeometry(Single, Single, Single)

Creates and returns a Cuboid as DCEL with the given dimensions, centered in the world coordinate system.

Declaration
public static Geometry CreateCuboidGeometry(float dimensionX, float dimensionY, float dimensionZ)
Parameters
Type Name Description
System.Single dimensionX

Width in X-dimension.

System.Single dimensionY

Height in Y-dimension.

System.Single dimensionZ

Depth in Z-dimension.

Returns
Type Description
Geometry

CreatePyramidGeometry(Single, Single, Single)

Creates and returns a Pyramid as a DCEL with the specified dimensions centered in the worlds coordinate system.

Declaration
public static Geometry CreatePyramidGeometry(float dimensionX, float dimensionY, float dimensionZ)
Parameters
Type Name Description
System.Single dimensionX

Width of the Pyramid in X-dimension

System.Single dimensionY

Height of the Pyramid in Y-dimension.

System.Single dimensionZ

Depth of the Pyramid in Z-dimension.

Returns
Type Description
Geometry

CreateSphereGeometry(Single, Int32, Int32)

Creates and returns a UV-Sphere as a DCEL with the specified dimensions centered in the worlds coordinate system.

Declaration
public static Geometry CreateSphereGeometry(float radius, int horizontalResolution, int verticalResolution)
Parameters
Type Name Description
System.Single radius

Radius of the sphere.

System.Int32 horizontalResolution

Lines of latitude, smallest value is 3.

System.Int32 verticalResolution

Lines of longitude, smallest value is 3.

Returns
Type Description
Geometry

A UV-Sphere centered in the world coordinate system as a DCEL.

Generated by DocFX
GitHub Repo
Back to top