Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
41a603e
Added VimMesh to replace IMesh eventually
vim-sroberge Apr 1, 2024
9b169ea
removed unused methods
vim-sroberge Apr 1, 2024
e84b315
removed more unused methods
vim-sroberge Apr 1, 2024
f617135
removed unused code
vim-sroberge Apr 1, 2024
6f058a6
removed unused methods
vim-sroberge Apr 1, 2024
63dc31e
Created IMeshCommon interface that respond to most of IMesh
vim-sroberge Apr 1, 2024
de587da
removed unused method
vim-sroberge Apr 4, 2024
95d1649
Added IMeshCommon as an intermediate step to removing g3d
vim-sroberge Apr 4, 2024
60d8726
replace VimScene.Meshes with the G3dMesh
vim-sroberge Apr 4, 2024
5cb0f05
missing IMeshCommon stuff
vim-sroberge Apr 4, 2024
7bf7b9a
implemented hash for meshcommon
vim-sroberge Apr 4, 2024
311ba67
added meshcommon toDocumentbuildersubdividedMesh
vim-sroberge Apr 4, 2024
510e4dc
added meshcommon version of method
vim-sroberge Apr 5, 2024
47c180c
added center for meshcommon
vim-sroberge Apr 5, 2024
2362b42
wrong type
vim-sroberge Apr 5, 2024
a521e21
Added quad method to vimmesh
vim-sroberge Apr 5, 2024
e8138d0
Added FromG3d to turn whole g3d into a vimMesh
vim-sroberge Apr 5, 2024
745da75
removed unused code
vim-sroberge Apr 5, 2024
66df4c7
removed redundant check
vim-sroberge Apr 5, 2024
c464aae
remove unused code
vim-sroberge Apr 5, 2024
5db4640
imesh -> imeshcommon
vim-sroberge Apr 5, 2024
a6c08b3
removed old imesh version of meshhash
vim-sroberge Apr 5, 2024
07019fc
imesh -> imeshcommon
vim-sroberge Apr 5, 2024
17f488e
minor mistakes
vim-sroberge Apr 5, 2024
8e0419f
removed unused file
vim-sroberge Apr 5, 2024
54abe40
replacing more Imesh
vim-sroberge Apr 5, 2024
10dc6c9
added unindex method
vim-sroberge Apr 5, 2024
24a8ddf
removing more imesh
vim-sroberge Apr 5, 2024
f7753a0
removed imesh
vim-sroberge Apr 9, 2024
bd36088
removed imesh
vim-sroberge Apr 9, 2024
a7c2e00
updating vimscene to g3dnext
vim-sroberge Apr 10, 2024
be3281a
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 10, 2024
b6930ee
removing conversions of materials
vim-sroberge Apr 10, 2024
293ed9e
removing conversions of materials
vim-sroberge Apr 10, 2024
1fce96f
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 10, 2024
b3c6320
materialnext: imaterial
vim-sroberge Apr 10, 2024
1d19d3b
added shape count
vim-sroberge Apr 10, 2024
e4b04c0
Renamed shapes and materials to old
vim-sroberge Apr 10, 2024
f54b841
explicit implementation of transform
vim-sroberge Apr 10, 2024
a36dcd5
removing builder types
vim-sroberge Apr 10, 2024
e2ae306
meshcommon -> vimmesh
vim-sroberge Apr 10, 2024
fc7bab6
renames
vim-sroberge Apr 10, 2024
d98be27
node.mesh is now vimmesh
vim-sroberge Apr 10, 2024
50a2be1
replaced scene extension with methods
vim-sroberge Apr 11, 2024
24e7639
concrete types instead of interfaces
vim-sroberge Apr 11, 2024
f7ce65b
removing iscene and iscenenode
vim-sroberge Apr 11, 2024
4f75adb
removed assimp project
vim-sroberge Apr 11, 2024
ede5f33
removed g3dtest project
vim-sroberge Apr 11, 2024
068c522
removed g3d builder
vim-sroberge Apr 11, 2024
621e50e
removed g3d serialization
vim-sroberge Apr 12, 2024
f1a31eb
removed g3d serialization
vim-sroberge Apr 12, 2024
2a8d018
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 12, 2024
140b12e
removed lots of unused attribute code
vim-sroberge Apr 12, 2024
f318a87
removed more
vim-sroberge Apr 12, 2024
528f882
added clone method
vim-sroberge Apr 12, 2024
df1016d
added hasflag
vim-sroberge Apr 12, 2024
d2bc286
added remove shapes
vim-sroberge Apr 12, 2024
f608645
added test for clone
vim-sroberge Apr 12, 2024
d1a31d5
removed geometry usage
vim-sroberge Apr 12, 2024
f1bd33e
removed most imeshcommon
vim-sroberge Apr 12, 2024
29e3401
removing g3d using
vim-sroberge Apr 12, 2024
2fa516f
removed old geometry
vim-sroberge Apr 15, 2024
75749ba
removed g3d
vim-sroberge Apr 15, 2024
48e3459
removed geometry utils
vim-sroberge Apr 15, 2024
8a55f41
removing dead code
vim-sroberge Apr 15, 2024
dbfcfdd
iarray -> array
vim-sroberge Apr 15, 2024
e2797c3
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 15, 2024
2908d93
iarray -> array
vim-sroberge Apr 15, 2024
169a31a
removed dead code
vim-sroberge Apr 15, 2024
6f1f9ff
iarray -> array
vim-sroberge Apr 16, 2024
033a466
iarray -> array
vim-sroberge Apr 16, 2024
5bfe828
lookup with enumerables
vim-sroberge Apr 16, 2024
ec747eb
iarray -> array
vim-sroberge Apr 16, 2024
90e3a2f
addind missing functions
vim-sroberge Apr 16, 2024
deb6a22
more extensions
vim-sroberge Apr 16, 2024
5a1f666
removed conflicting method
vim-sroberge Apr 16, 2024
298324d
added array methods
vim-sroberge Apr 16, 2024
df716a3
Remove array ops
vim-sroberge Apr 16, 2024
6422ca5
removed array ops
vim-sroberge Apr 16, 2024
b27902d
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 16, 2024
181976b
removing linq array
vim-sroberge Apr 16, 2024
3fae7ec
removing linq array
vim-sroberge Apr 16, 2024
43cb01f
restored method
vim-sroberge Apr 16, 2024
85c2318
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 16, 2024
463a07a
index of methods
vim-sroberge Apr 16, 2024
d6db1d9
fix
vim-sroberge Apr 16, 2024
a5a9b43
removed linqarray
vim-sroberge Apr 17, 2024
68fa5e7
fix
vim-sroberge Apr 16, 2024
bb2ec66
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
c9af93b
renamed g3dnext -> g3d
vim-sroberge Apr 17, 2024
9cc2298
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
c527781
rename
vim-sroberge Apr 17, 2024
4b3bb6c
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
ba112a4
g3dnext -> g3d
vim-sroberge Apr 17, 2024
a49f3f0
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
faab3f8
g3dnext -> g3d
vim-sroberge Apr 17, 2024
11b6176
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
9affe33
extracting loading code
vim-sroberge Apr 17, 2024
c80823a
ilookup -> dictionnary
vim-sroberge Apr 17, 2024
8123026
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
1b6042d
removed ilookup
vim-sroberge Apr 17, 2024
6472e45
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 17, 2024
ac1a599
removed unused code
vim-sroberge Apr 18, 2024
90858ed
removed uneeded extender
vim-sroberge Apr 18, 2024
fb616d8
added dictionaries
vim-sroberge Apr 18, 2024
a60e207
replaced extenders with method
vim-sroberge Apr 18, 2024
0148139
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 18, 2024
a589f83
replaced extenders with method
vim-sroberge Apr 18, 2024
53db277
use tobyte instead
vim-sroberge Apr 18, 2024
8f67e67
extension to method
vim-sroberge Apr 18, 2024
9c41872
removing _Document usages
vim-sroberge Apr 18, 2024
fa97b62
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 18, 2024
e00fe42
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 18, 2024
d96d4fd
removing direct reference to EntityTables
vim-sroberge Apr 18, 2024
9ff2cf6
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 18, 2024
3bc94cd
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 18, 2024
4618bd4
table count
vim-sroberge Apr 18, 2024
f6347ac
Merge branch 'sroberge/vimx-g3d' of https://github.com/vimaec/vim-for…
vim-sroberge Apr 18, 2024
7cd1e68
removed ref to Strings and introduced Bim object
vim-sroberge Apr 18, 2024
e33d91c
private data columns
vim-sroberge Apr 18, 2024
829a872
added has method
vim-sroberge Apr 18, 2024
a1ad1d7
private strings
vim-sroberge Apr 18, 2024
3777359
private index columns
vim-sroberge Apr 18, 2024
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
30 changes: 0 additions & 30 deletions src/cs/Vim.G3dNext.Tests/Vim.G3dNext.Tests.csproj

This file was deleted.

71 changes: 0 additions & 71 deletions src/cs/Vim.G3dNext.Tests/VimG3dNextTests.cs

This file was deleted.

10 changes: 10 additions & 0 deletions src/cs/bfast/Vim.BFast/Buffers/BufferExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,15 @@ public static Buffer<byte> ReadBuffer(this Stream stream, int numBytes)

public static void Write(this Stream stream, IBuffer buffer)
=> buffer.Write(stream);

public static NamedBuffer<T> Fill<T>(this NamedBuffer<T> buffer, T value) where T : unmanaged
{
var array = new T[buffer.Data.Length];
for (var i = 0; i < array.Length; i++)
{
array[i] = value;
}
return array.ToNamedBuffer(buffer.Name);
}
}
}
103 changes: 0 additions & 103 deletions src/cs/g3d/Vim.G3d.AssimpWrapper/AssimpExtensions.cs

This file was deleted.

36 changes: 0 additions & 36 deletions src/cs/g3d/Vim.G3d.AssimpWrapper/AssimpLoader.cs

This file was deleted.

21 changes: 0 additions & 21 deletions src/cs/g3d/Vim.G3d.AssimpWrapper/Vim.G3d.AssimpWrapper.csproj

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Linq;
using System.Text;

namespace Vim.G3dNext.CodeGen
namespace Vim.G3d.CodeGen
{
public class CodeBuilder
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Vim.Math3d;

namespace Vim.G3dNext.CodeGen
namespace Vim.G3d.CodeGen
{
internal class Definitions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Diagnostics;

namespace Vim.G3dNext.CodeGen
namespace Vim.G3d.CodeGen
{
public enum BufferType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.IO;
using System.Linq;

namespace Vim.G3dNext.CodeGen
namespace Vim.G3d.CodeGen
{
public static class G3dCodeGen
{
Expand All @@ -16,7 +16,7 @@ public static void WriteDocument(string filePath)
cb.AppendLine("// ReSharper disable All");
cb.AppendLine("using Vim.BFastLib;");
cb.AppendLine();
cb.AppendLine("namespace Vim.G3dNext");
cb.AppendLine("namespace Vim.G3d");
cb.AppendLine("{");
WriteEntities(cb);
cb.AppendLine("}");
Expand Down Expand Up @@ -85,6 +85,11 @@ public BFast ToBFast()
return bfast;
}}

public {entity.ClassName} Clone()
{{
return this.MemberwiseClone() as {entity.ClassName};
}}

public bool Equals({entity.ClassName} other )
{{
return {string.Join(" && \n \t\t\t", entity.Buffers.Select(b =>
Expand Down Expand Up @@ -113,6 +118,14 @@ public bool Equals({entity.ClassName} other )
);
}}

public int CountOf(string name)
{{
{string.Join("\n \t\t\t", entity.Buffers.Select(c => {
return $"if(name == \"{c.BufferName}\") return {c.MemberName}?.Length ?? -1;";
}))}
return -1;
}}

public void Validate()
{{
// Ensure all the indices are either -1 or within the bounds of the attributes they are indexing into.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace Vim.G3dNext.CodeGen
namespace Vim.G3d.CodeGen
{
/// <summary>
/// Holds the data to generate the code for a g3d entity.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Vim.G3dNext.CodeGen
namespace Vim.G3d.CodeGen
{
public static class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
<PropertyGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<OutputType>Exe</OutputType>
<ApplicationIcon />
<StartupObject>Vim.G3dNext.CodeGen.Program</StartupObject>
<StartupObject>Vim.G3d.CodeGen.Program</StartupObject>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../../math3d/Vim.Math3D/Vim.Math3D.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(TargetFramework)' != 'netstandard2.0'">
<Exec Command="dotnet &quot;$(OutDir)Vim.G3dNext.CodeGen.dll&quot; &quot;../Vim.G3dNext/G3dGenerated.g.cs&quot;" />
<Exec Command="dotnet &quot;$(OutDir)Vim.G3d.CodeGen.dll&quot; &quot;../Vim.G3d/G3dGenerated.g.cs&quot;" />
</Target>
<ItemGroup>
<None Include="../../../../LICENSE.txt">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Vim.Math3d;

namespace Vim.G3dNext.Tests
namespace Vim.G3d.Tests
{
public static class G3dNextTestUtils
public static class G3dTestUtils
{
public static G3dVim CreateTestG3d()
{
Expand Down
Loading