Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/cs/vim/Vim.Format.Tests/EntityTable_v2_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public static void TestEntityTable_v2_Parity()

// EntityTable_v2 manual construction.
var fileInfo = new FileInfo(vimFilePath);
var entityTables = fileInfo.EnumerateEntityTables(false).ToArray();
var entityTableSet = new EntityTableSet(entityTables, stringBuffer);
var entityTableSet = new EntityTableSet(fileInfo, false, stringBuffer);

var baseElementCount = dm.NumElement;
var nextElementCount = entityTableSet.ElementTable.RowCount;
Expand Down
27 changes: 27 additions & 0 deletions src/cs/vim/Vim.Format/ObjectModel/EntityTableSet.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.IO;
using System.Linq;

namespace Vim.Format.ObjectModel
{
/// <summary>
/// Additional partial definitions of EntityTableSet.
/// </summary>
public partial class EntityTableSet
{
/// <summary>
/// Convenience constructor for seeking entity table information in a VIM file.
/// </summary>
public EntityTableSet(
FileInfo vimFileInfo,
bool schemaOnly,
string[] stringBuffer,
Func<string, bool> entityTableNameFilterFunc = null,
bool inParallel = true)
: this(
vimFileInfo.EnumerateEntityTables(schemaOnly, entityTableNameFilterFunc).ToArray(),
stringBuffer,
inParallel)
{ }
}
}
1 change: 1 addition & 0 deletions src/cs/vim/Vim.Format/ObjectModel/ObjectModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,7 @@ public partial class Node : EntityWithElement
/// Represents a mesh in the G3D buffer of the VIM file.
/// </summary>
[TableName(TableNames.Geometry)]
[G3dAttributeReference("g3d:mesh:submeshoffset:0:int32:1", G3dAttributeReferenceMultiplicity.OneToOne)]
public partial class Geometry : Entity
{
public float Box_Min_X;
Expand Down
1 change: 0 additions & 1 deletion src/cs/vim/Vim.Format/SceneBuilder/VimScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public VimScene(SerializableDocument doc, IVimSceneProgress progress = null, boo
VimIndex = vimIndex;
progress?.Report(($"Creating scene from {doc.FileName}", 0.0));


var actions = GetInitStepsWithProgress(inParallel, progress);

if (inParallel)
Expand Down
Loading