• Home
  • Samples
  • Api Documentation
Show / Hide Table of Contents
  • Aximo
    • AssetManager
    • AxMath
    • AxPixelFormat
    • AxPrimitiveType
    • BoxExtensions
    • BoxHelper
    • BufferData
    • BufferData1D
    • BufferData1D<T>
    • BufferData2D
    • BufferData2D<T>
    • BufferData3D
    • BufferData3D<T>
    • BufferDataExtentions
    • Camera
    • Camera.CameraChangedDelegate
    • CameraType
    • DebugHelper
    • DictionaryExtensions
    • EventCounter
    • FaceExtensions
    • GenerateFileDelegate
    • Hashing
    • IArray<T>
    • IData
    • IDynamicArray<T>
    • ImageExtensions
    • IPosition
    • IVisitor
    • IVisitorNode
    • Line2
    • Line3
    • ListExtensions
    • Log
    • LogExtensions
    • Mesh
    • MeshColorComponent
    • MeshComponent
    • MeshComponent<T>
    • MeshComponentType
    • MeshFace<T>
    • MeshFaceType
    • MeshNormalComponent
    • MeshPosition2Component
    • MeshPosition3Component
    • MeshPositionComponent<T>
    • MeshUVComponent
    • MeshVertexList<T>
    • OrthographicCamera
    • PathBuilder
    • PerspectiveFieldOfViewCamera
    • Plane
    • Ray
    • ScreenResizeEventArgs
    • SharedLib
    • StreamExtensions
    • StringExtensions
    • Transform
    • VectorExtensions
    • VectorHelper
  • Aximo.Engine
    • Actor
    • ActorComponent
    • AfterApplicationInitializedDelegate
    • Application
    • ApplicationConfig
    • BufferComponent
    • CommandLineOptions
    • ISceneInterface
    • LerpFunc<TValue>
    • Material
    • Material.Parameter
    • Material.ParamterType
    • MaterialManager
    • MeshBuilder
    • PipelineType
    • PrimitiveDrawInterface
    • PrimitiveSceneProxy
    • ScaleFunc
    • ScaleFuncs
    • SceneComponent
    • SceneContext
    • SceneObject
    • Shader
    • Startup
    • Startup<TApplication, TGtk>
    • Startup<TApplication>
    • StaticMeshSceneProxy
    • StaticPrimitiveDrawInterface
    • TaskQueue
    • Texture
    • TextureManager
    • Tween
    • Tween<TValue>
    • Tween1
    • Tween2
    • Tween3
    • TweenBuilder
    • TweenBuilder<TTarget>
    • TweenBuilderExtensions
    • TweenFinishedDelegate
    • TweenState
    • TweenStopBehavior
  • Aximo.Engine.Audio
    • AudioManager
  • Aximo.Engine.Components.Geometry
    • CrossLineComponent
    • CubeComponent
    • DebugCubeComponent
    • GraphicsScreenTextureComponent
    • GridPlaneComponent
    • LineComponent
    • MeshComponent
    • PrimitiveComponent
    • QuadComponent
    • ScreenTextureComponent
    • SkyBoxComponent
    • SphereComponent
    • StaticMeshComponent
    • StatsComponent
  • Aximo.Engine.Components.Lights
    • DirectionalLightComponent
    • LightComponent
    • PointLightComponent
  • Aximo.Engine.Components.UI
    • UIAnchors
    • UIButton
    • UIButtonComponent
    • UIComponent
    • UIContainerComponent
    • UIDock
    • UIFloatingContainer
    • UIFlowContainer
    • UIImage
    • UILabelComponent
    • UIPanelComponent
    • UIRect
  • Aximo.Engine.Windows
    • GtkUI
    • MouseButtonArgs
    • MouseMoveArgs
    • RenderWindow
    • WindowContext
  • Aximo.Generators.AlchemyCircle
    • AlchemyCircleGenerator
    • AlchemyCircleOptions
    • CiaccoRandom
    • TextureDraw
  • Aximo.Render
    • IBounds
    • IDeferredRenderable
    • IForwardRenderable
    • ILightObject
    • ILightTarget
    • IMeshObject
    • IReloadable
    • IRenderableObject
    • IRenderObject
    • IRenderTarget
    • IScaleRotate
    • IScreenRenderable
    • IShadowObject
    • IUpdateFrame
    • LightType
    • MaterialColorBlendMode
    • MeshDepthSorter
    • PixelFormatExtensions
    • PrimitiveObject
    • RenderContext
    • Renderer
    • RendererMaterial
    • ScreenTextureObject
    • SlotAllocator<T>
  • Aximo.Render.Objects
    • LightObject
    • RenderObject
    • RenderObjectBase
    • ScreenSceneObject
    • ScreenshotObject
    • SimpleVertexObject
    • SkyboxObject
  • Aximo.Render.OpenGL
    • BindingPoint
    • BufferObject
    • CullFaceMode
    • DepthFunction
    • DynamicInternalMesh
    • ElementsBufferObject
    • FlushRenderBackend
    • FrameBuffer
    • GraphicsDevice
    • GraphicsTexture
    • InternalLightManager
    • InternalMesh
    • InternalTextureManager
    • IObjectHandle
    • IObjectIdentifier
    • IObjectLabel
    • MeshData
    • MeshData<T>
    • MeshDataBuilder
    • MeshExtensions
    • ObjectManager
    • RenderBuffer
    • RendererShader
    • RendererTexture
    • ShaderCompilation
    • ShaderSource
    • StaticInternalMesh
    • StructHelper
    • UniformBufferObject
    • VertexArrayObject
    • VertexBufferObject
    • VertexLayoutBinded
    • VertexLayoutBindedAttribute
    • VertexLayoutDefinition
    • VertexLayoutDefinitionAttribute
  • Aximo.Render.Pipelines
    • DeferredPass
    • DeferredRenderPipeline
    • DirectionalShadowRenderPipeline
    • ForwardRenderPipeline
    • IRenderPipeline
    • PointShadowRenderPipeline
    • RenderPipeline
    • ScreenPipeline
  • Aximo.Util.IcoSphere
    • IcoSphereCreator
    • IcoSphereMesh
    • MeshGeometry3D
    • TriangleIndices
    • VertexSoup<TVertexStruct>
  • Aximo.VertexData
    • EngineExtensions
    • IPrimitive
    • IPrimitive<TVertex>
    • IVertex
    • IVertexColor
    • IVertexNormal
    • IVertexPos2UV
    • IVertexPosColor
    • IVertexPosition<TVector>
    • IVertexPosition2
    • IVertexPosition3
    • IVertexPosNormalColor
    • IVertexPosNormalUV
    • IVertexPosUV
    • IVertexUV
    • Line<TVertex>
    • Polygon<TVertex>
    • Quad<TVertex>
    • VertexDataPos
    • VertexDataPos2
    • VertexDataPos2UV
    • VertexDataPosColor
    • VertexDataPosNormalColor
    • VertexDataPosNormalUV
    • VertexDataPosUV
  • OpenToolkit.Mathematics
    • AntiVector4d
    • BiVector3d
    • BiVector4d
    • Rotor3

Class Mesh

Represents a Mesh. Can contain vary Polygons.

Inheritance
System.Object
Mesh
Namespace: Aximo
Assembly: AxCommon.dll
Syntax
public class Mesh

Fields

| Improve this Doc View Source

PrimitiveType

Declaration
public MeshFaceType PrimitiveType
Field Value
Type Description
MeshFaceType

Properties

| Improve this Doc View Source

Bounds

Declaration
public Box3 Bounds { get; }
Property Value
Type Description
OpenToolkit.Mathematics.Box3
| Improve this Doc View Source

Components

Declaration
public IList<MeshComponent> Components { get; }
Property Value
Type Description
System.Collections.Generic.IList<MeshComponent>
| Improve this Doc View Source

FaceCount

Declaration
public int FaceCount { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

MaterialCount

Declaration
public int MaterialCount { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

MaterialIds

Declaration
public HashSet<int> MaterialIds { get; }
Property Value
Type Description
System.Collections.Generic.HashSet<System.Int32>
| Improve this Doc View Source

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

VertexCount

Declaration
public int VertexCount { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

AddComponent(MeshComponent)

Declaration
public void AddComponent(MeshComponent component)
Parameters
Type Name Description
MeshComponent component
| Improve this Doc View Source

AddComponent(MeshComponentType)

Declaration
public MeshComponent AddComponent(MeshComponentType componentType)
Parameters
Type Name Description
MeshComponentType componentType
Returns
Type Description
MeshComponent
| Improve this Doc View Source

AddComponent<T>()

Declaration
public T AddComponent<T>()
    where T : MeshComponent, new()
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

AddComponents<T>()

Declaration
public void AddComponents<T>()
    where T : IVertex
Type Parameters
Name Description
T
| Improve this Doc View Source

AddFace(IList<Int32>)

Declaration
public void AddFace(IList<int> indicies)
Parameters
Type Name Description
System.Collections.Generic.IList<System.Int32> indicies
| Improve this Doc View Source

AddFace(Int32[])

Declaration
public void AddFace(params int[] indicies)
Parameters
Type Name Description
System.Int32[] indicies
| Improve this Doc View Source

AddFaceAndMaterial(Int32, Int32[])

Declaration
public void AddFaceAndMaterial(int materialId, params int[] indicies)
Parameters
Type Name Description
System.Int32 materialId
System.Int32[] indicies
| Improve this Doc View Source

AddFaceFromVerticesPosition(Int32)

Declaration
public void AddFaceFromVerticesPosition(int vertexStartIndex)
Parameters
Type Name Description
System.Int32 vertexStartIndex
| Improve this Doc View Source

AddFaceFromVerticesPosition(Int32, MeshFaceType)

Declaration
public void AddFaceFromVerticesPosition(int vertexStartIndex, MeshFaceType faceType)
Parameters
Type Name Description
System.Int32 vertexStartIndex
MeshFaceType faceType
| Improve this Doc View Source

AddFaceFromVerticesTail()

Declaration
public void AddFaceFromVerticesTail()
| Improve this Doc View Source

AddFaceFromVerticesTail(MeshFaceType)

Declaration
public void AddFaceFromVerticesTail(MeshFaceType faceType)
Parameters
Type Name Description
MeshFaceType faceType
| Improve this Doc View Source

AddMesh(Mesh)

Declaration
public void AddMesh(Mesh mesh)
Parameters
Type Name Description
Mesh mesh
| Improve this Doc View Source

AddMesh(Mesh, Int32)

Declaration
public void AddMesh(Mesh mesh, int filterMaterialId)
Parameters
Type Name Description
Mesh mesh
System.Int32 filterMaterialId
| Improve this Doc View Source

AddMesh(Mesh, Int32, Int32)

Declaration
public void AddMesh(Mesh mesh, int filterMaterialId, int newMaterialId)
Parameters
Type Name Description
Mesh mesh
System.Int32 filterMaterialId
System.Int32 newMaterialId
| Improve this Doc View Source

AddVertex(Mesh, Int32)

Declaration
public int AddVertex(Mesh src, int index)
Parameters
Type Name Description
Mesh src
System.Int32 index
Returns
Type Description
System.Int32
| Improve this Doc View Source

AddVertices(Mesh, Int32, Int32)

Declaration
public void AddVertices(Mesh src, int start, int count)
Parameters
Type Name Description
Mesh src
System.Int32 start
System.Int32 count
| Improve this Doc View Source

AddVertices<T>(ICollection<T>)

Declaration
public void AddVertices<T>(ICollection<T> values)
    where T : IVertex
Parameters
Type Name Description
System.Collections.Generic.ICollection<T> values
Type Parameters
Name Description
T
| Improve this Doc View Source

CalculateBounds()

Declaration
public void CalculateBounds()
| Improve this Doc View Source

Clone()

Declaration
public Mesh Clone()
Returns
Type Description
Mesh
| Improve this Doc View Source

CloneEmpty()

Declaration
public Mesh CloneEmpty()
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateCube()

Declaration
public static Mesh CreateCube()
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateCylinder(Single, Nullable<Single>, Single, Int32)

Declaration
public static Mesh CreateCylinder(float diameterBottom = 1F, float? diameterTop = default(float? ), float height = 1F, int slices = 8)
Parameters
Type Name Description
System.Single diameterBottom
System.Nullable<System.Single> diameterTop
System.Single height
System.Int32 slices
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateFacesAndIndicies()

Declaration
public void CreateFacesAndIndicies()
| Improve this Doc View Source

CreateFacesAndIndicies(MeshFaceType)

Declaration
public void CreateFacesAndIndicies(MeshFaceType type)
Parameters
Type Name Description
MeshFaceType type
| Improve this Doc View Source

CreateFacesFromIndicies()

Declaration
public void CreateFacesFromIndicies()
| Improve this Doc View Source

CreateFacesFromIndicies(MeshFaceType)

Declaration
public void CreateFacesFromIndicies(MeshFaceType type)
Parameters
Type Name Description
MeshFaceType type
| Improve this Doc View Source

CreateFromVertices<T>(T[], Int32[], MeshFaceType)

Declaration
public static Mesh CreateFromVertices<T>(T[] vertices, int[] indicies = null, MeshFaceType primitiveType = MeshFaceType.Triangle)
    where T : IVertex
Parameters
Type Name Description
T[] vertices
System.Int32[] indicies
MeshFaceType primitiveType
Returns
Type Description
Mesh
Type Parameters
Name Description
T
| Improve this Doc View Source

CreateQuad2()

Declaration
public static Mesh CreateQuad2()
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateQuad3()

Declaration
public static Mesh CreateQuad3()
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateQuadStride(IEnumerable<Vector2>)

Declaration
public static Mesh CreateQuadStride(IEnumerable<Vector2> path)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector2> path
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateQuadStride(IEnumerable<Vector3>, IEnumerable<Vector3>)

Declaration
public static Mesh CreateQuadStride(IEnumerable<Vector3> topPath, IEnumerable<Vector3> bottomPath)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector3> topPath
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector3> bottomPath
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateSphere(Int32)

Declaration
public static Mesh CreateSphere(int divisions = 2)
Parameters
Type Name Description
System.Int32 divisions
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateSurface(IEnumerable<Vector2>)

Declaration
public static Mesh CreateSurface(IEnumerable<Vector2> path)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector2> path
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateSurface(IEnumerable<Vector2>, Vector2)

Declaration
public static Mesh CreateSurface(IEnumerable<Vector2> path, Vector2 center)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector2> path
OpenToolkit.Mathematics.Vector2 center
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateSurface(IEnumerable<Vector3>)

Declaration
public static Mesh CreateSurface(IEnumerable<Vector3> path)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector3> path
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateSurface(IEnumerable<Vector3>, Vector3)

Declaration
public static Mesh CreateSurface(IEnumerable<Vector3> path, Vector3 center)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector3> path
OpenToolkit.Mathematics.Vector3 center
Returns
Type Description
Mesh
| Improve this Doc View Source

CreateWallQuad()

Declaration
public static Mesh CreateWallQuad()
Returns
Type Description
Mesh
| Improve this Doc View Source

Expand()

Declaration
public void Expand()
| Improve this Doc View Source

Expanded()

Declaration
public Mesh Expanded()
Returns
Type Description
Mesh
| Improve this Doc View Source

FaceView<T>()

Declaration
public IList<MeshFace<T>> FaceView<T>()
    where T : IVertex
Returns
Type Description
System.Collections.Generic.IList<MeshFace<T>>
Type Parameters
Name Description
T
| Improve this Doc View Source

GetComponent(MeshComponentType)

Declaration
public MeshComponent GetComponent(MeshComponentType componentType)
Parameters
Type Name Description
MeshComponentType componentType
Returns
Type Description
MeshComponent
| Improve this Doc View Source

GetComponent<T>()

Declaration
public T GetComponent<T>()
    where T : MeshComponent
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetComponent<T>(MeshComponentType)

Declaration
public T GetComponent<T>(MeshComponentType componentType)
    where T : MeshComponent
Parameters
Type Name Description
MeshComponentType componentType
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetIndiciesArray()

Declaration
public int[] GetIndiciesArray()
Returns
Type Description
System.Int32[]
| Improve this Doc View Source

GetIndiciesArray(Int32)

Declaration
public int[] GetIndiciesArray(int materialId)
Parameters
Type Name Description
System.Int32 materialId
Returns
Type Description
System.Int32[]
| Improve this Doc View Source

GetIndiciesArray<T>()

Declaration
public T[] GetIndiciesArray<T>()
    where T : struct
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

GetIndiciesBuffer<T>()

Declaration
public BufferData1D<T> GetIndiciesBuffer<T>()
    where T : struct
Returns
Type Description
BufferData1D<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

GetPrimitiveType()

Declaration
public AxPrimitiveType GetPrimitiveType()
Returns
Type Description
AxPrimitiveType
| Improve this Doc View Source

GetVertexArray<T>()

Declaration
public T[] GetVertexArray<T>()
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

HasComponent(MeshComponentType)

Declaration
public bool HasComponent(MeshComponentType componentType)
Parameters
Type Name Description
MeshComponentType componentType
Returns
Type Description
System.Boolean
| Improve this Doc View Source

HasComponent<T>()

Declaration
public bool HasComponent<T>()
    where T : MeshComponent
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
| Improve this Doc View Source

HasComponents<T1, T2>()

Declaration
public bool HasComponents<T1, T2>()
    where T1 : MeshComponent where T2 : MeshComponent
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T1
T2
| Improve this Doc View Source

HasComponents<T1, T2, T3>()

Declaration
public bool HasComponents<T1, T2, T3>()
    where T1 : MeshComponent where T2 : MeshComponent where T3 : MeshComponent
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T1
T2
T3
| Improve this Doc View Source

IsCompatible<T>()

Declaration
public bool IsCompatible<T>()
    where T : IVertex
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T
| Improve this Doc View Source

IsComponents<T1, T2>()

Declaration
public bool IsComponents<T1, T2>()
    where T1 : MeshComponent where T2 : MeshComponent
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T1
T2
| Improve this Doc View Source

IsComponents<T1, T2, T3>()

Declaration
public bool IsComponents<T1, T2, T3>()
    where T1 : MeshComponent where T2 : MeshComponent where T3 : MeshComponent
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T1
T2
T3
| Improve this Doc View Source

RecalculateNormals(Single)

Declaration
public void RecalculateNormals(float angle)
Parameters
Type Name Description
System.Single angle
| Improve this Doc View Source

ReplaceMaterial(Int32, Int32)

Declaration
public void ReplaceMaterial(int oldMaterialId, int newMaterialid)
Parameters
Type Name Description
System.Int32 oldMaterialId
System.Int32 newMaterialid
| Improve this Doc View Source

ReverseWindingOrder()

Declaration
public void ReverseWindingOrder()
| Improve this Doc View Source

ReverseWindingOrder(Int32)

Declaration
public void ReverseWindingOrder(int faceIndex)
Parameters
Type Name Description
System.Int32 faceIndex
| Improve this Doc View Source

Scale(Vector2)

Declaration
public void Scale(Vector2 scale)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 scale
| Improve this Doc View Source

Scale(Vector3)

Declaration
public void Scale(Vector3 scale)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector3 scale
| Improve this Doc View Source

Scale(Single)

Declaration
public void Scale(float scale)
Parameters
Type Name Description
System.Single scale
| Improve this Doc View Source

Scale(Single, Single)

Declaration
public void Scale(float scaleX, float scaleY)
Parameters
Type Name Description
System.Single scaleX
System.Single scaleY
| Improve this Doc View Source

Scale(Single, Single, Single)

Declaration
public void Scale(float scaleX, float scaleY, float scaleZ)
Parameters
Type Name Description
System.Single scaleX
System.Single scaleY
System.Single scaleZ
| Improve this Doc View Source

SetMaterial(Int32, Int32)

Declaration
public void SetMaterial(int faceIndex, int materialId)
Parameters
Type Name Description
System.Int32 faceIndex
System.Int32 materialId
| Improve this Doc View Source

SetNormals(IEnumerable<Vector3>)

Declaration
public void SetNormals(IEnumerable<Vector3> normals)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<OpenToolkit.Mathematics.Vector3> normals
| Improve this Doc View Source

ToPrimitive()

Declaration
public Mesh ToPrimitive()
Returns
Type Description
Mesh
| Improve this Doc View Source

ToPrimitive(MeshFaceType, Int32)

Declaration
public Mesh ToPrimitive(MeshFaceType targetFaceType, int materialId = -1)
Parameters
Type Name Description
MeshFaceType targetFaceType
System.Int32 materialId
Returns
Type Description
Mesh
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
| Improve this Doc View Source

Translate(Vector2)

Declaration
public void Translate(Vector2 direction)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 direction
| Improve this Doc View Source

Translate(Vector3)

Declaration
public void Translate(Vector3 direction)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector3 direction
| Improve this Doc View Source

View<T>()

Declaration
public MeshVertexList<T> View<T>()
    where T : IVertex
Returns
Type Description
MeshVertexList<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

Visit<T>(Action<T, Int32>)

Declaration
public void Visit<T>(Action<T, int> callback)
    where T : IVertex
Parameters
Type Name Description
System.Action<T, System.Int32> callback
Type Parameters
Name Description
T
| Improve this Doc View Source

Visit<T>(Action<T>)

Declaration
public void Visit<T>(Action<T> callback)
    where T : IVertex
Parameters
Type Name Description
System.Action<T> callback
Type Parameters
Name Description
T

Extension Methods

MeshExtensions.GetMeshData(Mesh, Int32)
MeshExtensions.ToMeshData<T>(Mesh)
MeshExtensions.ToMeshData<T>(Mesh, Int32)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX