C# Class AcTools.Render.Base.Utils.GeometryGenerator

Exibir arquivo Open project: gro-ove/actools

Public Methods

Method Description
CreateBox ( float width, float height, float depth ) : MeshData
CreateCylinder ( float bottomRadius, float topRadius, float height, int sliceCount, int stackCount ) : MeshData
CreateFullScreenQuad ( ) : MeshData
CreateGeosphere ( float radius, SubdivisionCount numSubdivisions ) : MeshData
CreateGrid ( float width, float depth, int m, int n ) : MeshData
CreateSphere ( float radius, int sliceCount, int stackCount ) : MeshData

Private Methods

Method Description
BuildCylinderBottomCap ( float bottomRadius, float height, int sliceCount, MeshData &ret ) : void
BuildCylinderTopCap ( float topRadius, float height, int sliceCount, MeshData &ret ) : void

Method Details

CreateBox() public static method

public static CreateBox ( float width, float height, float depth ) : MeshData
width float
height float
depth float
return MeshData

CreateCylinder() public static method

public static CreateCylinder ( float bottomRadius, float topRadius, float height, int sliceCount, int stackCount ) : MeshData
bottomRadius float
topRadius float
height float
sliceCount int
stackCount int
return MeshData

CreateFullScreenQuad() public static method

public static CreateFullScreenQuad ( ) : MeshData
return MeshData

CreateGeosphere() public static method

public static CreateGeosphere ( float radius, SubdivisionCount numSubdivisions ) : MeshData
radius float
numSubdivisions SubdivisionCount
return MeshData

CreateGrid() public static method

public static CreateGrid ( float width, float depth, int m, int n ) : MeshData
width float
depth float
m int
n int
return MeshData

CreateSphere() public static method

public static CreateSphere ( float radius, int sliceCount, int stackCount ) : MeshData
radius float
sliceCount int
stackCount int
return MeshData