Пример #1
0
 /// <summary>
 /// Creates the object constructor with the given geometry constructor
 /// </summary>
 /// <param name="geometryConstructor">Geometry constructor to initialize the object</param>
 public ObjectConstructor(GeometryConstructor geometryConstructor)
 {
     GeometryConstructor = geometryConstructor;
     MaterialConstructor = new MaterialConstructor();
 }
Пример #2
0
 /// <summary>
 /// Creates the object constructor with the given geometry and material constructors
 /// </summary>
 /// <param name="geometryConstructor">Geometry constructor to initialize the object</param>
 /// <param name="material">Material constructor to initialize the object</param>
 public ObjectConstructor(GeometryConstructor geometryConstructor, MaterialConstructor material) : this(geometryConstructor)
 {
     MaterialConstructor = material;
 }
Пример #3
0
 /// <summary>
 /// Creates the object constructor with empty geometry and material constructors
 /// </summary>
 public ObjectConstructor()
 {
     GeometryConstructor = new GeometryConstructor();
     MaterialConstructor = new MaterialConstructor();
 }