|
@@ -182,6 +182,10 @@ namespace SharpGLTF.Schema2.Tiles3D
|
|
|
.UseProperty("matrix4x4")
|
|
.UseProperty("matrix4x4")
|
|
|
.WithMatrix4x4Type(Matrix4x4.Identity * -10);
|
|
.WithMatrix4x4Type(Matrix4x4.Identity * -10);
|
|
|
|
|
|
|
|
|
|
+ var stringArrayProperty = schemaClass
|
|
|
|
|
+ .UseProperty("stringArray")
|
|
|
|
|
+ .WithStringArrayType(noData: ["test0", "test1"], defaultValue: ["nothing"]);
|
|
|
|
|
+
|
|
|
// todo add array types
|
|
// todo add array types
|
|
|
|
|
|
|
|
var propertyTable = schemaClass.AddPropertyTable(1);
|
|
var propertyTable = schemaClass.AddPropertyTable(1);
|
|
@@ -247,6 +251,13 @@ namespace SharpGLTF.Schema2.Tiles3D
|
|
|
.UseProperty(matrix4x4Property)
|
|
.UseProperty(matrix4x4Property)
|
|
|
.SetValues(m4);
|
|
.SetValues(m4);
|
|
|
|
|
|
|
|
|
|
+ var strings = new List<List<string>>();
|
|
|
|
|
+ strings.Add(["test0", "test1"]);
|
|
|
|
|
+
|
|
|
|
|
+ propertyTable
|
|
|
|
|
+ .UseProperty(stringArrayProperty)
|
|
|
|
|
+ .SetArrayValues(strings);
|
|
|
|
|
+
|
|
|
foreach (var primitive in model.LogicalMeshes[0].Primitives)
|
|
foreach (var primitive in model.LogicalMeshes[0].Primitives)
|
|
|
{
|
|
{
|
|
|
var featureIdAttribute = new FeatureIDBuilder(1, 0, propertyTable);
|
|
var featureIdAttribute = new FeatureIDBuilder(1, 0, propertyTable);
|