ProceduralModelDescriptor Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
A descriptor for a procedural geometry.
System.Object →
ProceduralModelDescriptor
Derived from ProceduralModelDescriptor:
[DataContract("ProceduralModelDescriptor")]
[ContentSerializer(typeof(ProceduralModelDescriptorContentSerializer))]
[ContentSerializer(typeof(DataContentSerializer<ProceduralModelDescriptor>))]
public class ProceduralModelDescriptor
Name | Description | |
---|---|---|
Constructors | ||
ProceduralModelDescriptor() | Initializes a new instance of the ProceduralModelDescriptor class. |
|
ProceduralModelDescriptor(IProceduralModel) | Initializes a new instance of the ProceduralModelDescriptor class. |
|
Properties | ||
Type | Gets or sets the type of geometric primitive. |
|
Methods | ||
GenerateModel(IServiceRegistry) | ||
GenerateModel(IServiceRegistry, Model) |
Constructors
ProceduralModelDescriptor()
Initializes a new instance of the ProceduralModelDescriptor class.
public ProceduralModelDescriptor()
ProceduralModelDescriptor(IProceduralModel)
Initializes a new instance of the ProceduralModelDescriptor class.
public ProceduralModelDescriptor(IProceduralModel type)
Parameters
Type | Name | Description |
---|---|---|
IProceduralModel | type | The type. |
Properties
Type
Gets or sets the type of geometric primitive.
[DataMember(10)]
[Display("Type", null, Expand = ExpandRule.Always)]
public IProceduralModel Type { get; set; }
Property Value
Type | Description |
---|---|
IProceduralModel | The type of geometric primitive. |
Methods
GenerateModel(IServiceRegistry)
public Model GenerateModel(IServiceRegistry services)
Parameters
Type | Name | Description |
---|---|---|
IServiceRegistry | services |
Returns
Type | Description |
---|---|
Model |
GenerateModel(IServiceRegistry, Model)
public void GenerateModel(IServiceRegistry services, Model model)
Parameters
Type | Name | Description |
---|---|---|
IServiceRegistry | services | |
Model | model |