Class TeapotMesh
Teapot primitive mesh. To render this mesh use the MeshRenderer class.
Inheritance
TeapotMesh
  Implements
Inherited Members
Namespace: Evergine.Components.Graphics3D
Assembly: Evergine.Components.dll
Syntax
public class TeapotMesh : PrimitiveBaseMesh, IDependencyObject
  Constructors
TeapotMesh()
Initializes a new instance of the TeapotMesh class.
Declaration
public TeapotMesh()
  Properties
Size
Gets or sets the size of the teapot. Must be greater than 0.
Declaration
[RenderPropertyAsFInput(1.1920929E-07, 3.4028235E+38)]
public float Size { get; set; }
  Property Value
| Type | Description | 
|---|---|
| float | 
Tessellation
Gets or sets the tessellation of the teapot. Must be greater than 3.
Declaration
[RenderPropertyAsInput(3, 25, AsSlider = true, DesiredChange = 1, DesiredLargeChange = 2, DefaultValue = 16)]
public int Tessellation { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Methods
Build(PrimitiveModelBuilder)
Builds a primitive instance using the given builder.
Declaration
protected override void Build(PrimitiveModelBuilder builder)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PrimitiveModelBuilder | builder | The primitive model builder.  | 
      
Overrides
GetPrimitiveHashCode()
Gets an unique identifier of the primitive definition.
Declaration
protected override int GetPrimitiveHashCode()
  Returns
| Type | Description | 
|---|---|
| int | An unique identifier of the primitive definition.  |