Class ProceduralModelBuilder
- Namespace
- Stride.CommunityToolkit.Rendering.ProceduralModels
- Assembly
- Stride.CommunityToolkit.dll
Builds the procedural model of a Primitive3D or Primitive2D shape.
public static class ProceduralModelBuilder
- Inheritance
-
ProceduralModelBuilder
Methods
Build(Primitive2D)
Builds the procedural model of a flat shape in the XY plane, with the shape's dimensions and tessellation.
public static PrimitiveProceduralModelBase Build(Primitive2D shape)
Parameters
shapePrimitive2DThe shape to build.
Returns
- PrimitiveProceduralModelBase
The procedural model; call
Generateon it for the Model.
Build(Primitive3D)
Builds the procedural model of shape, with the shape's dimensions and tessellation.
public static PrimitiveProceduralModelBase Build(Primitive3D shape)
Parameters
shapePrimitive3DThe shape to build.
Returns
- PrimitiveProceduralModelBase
The procedural model; call
Generateon it for the Model.