@@ -48,8 +48,8 @@ unsafe public uint Add(Vector3 pos, Vector3 norm, Vector2 uv)
48
48
49
49
public ( int positionAccessor , int normalAccessor , int uvAccessor ) Finish ( )
50
50
{
51
- var minPos = new System . DoubleNumerics . Vector3 ( _minPosition . X , _minPosition . Y , _minPosition . Z ) ;
52
- var maxPos = new System . DoubleNumerics . Vector3 ( _maxPosition . X , _maxPosition . Y , _maxPosition . Z ) ;
51
+ var minPos = new Speckle . DoubleNumerics . Vector3 ( _minPosition . X , _minPosition . Y , _minPosition . Z ) ;
52
+ var maxPos = new Speckle . DoubleNumerics . Vector3 ( _maxPosition . X , _maxPosition . Y , _maxPosition . Z ) ;
53
53
var bufferView = _builder . AddBufferView ( _buffer , _count * _byteStride , _byteOffset , _byteStride , GLtf . BufferTarget . ARRAY_BUFFER ) ;
54
54
var positionAccessor = _builder . AddAccessor ( GLtf . ComponentType . FLOAT , _count , "VEC3" , bufferView , 0 , minPos , maxPos ) ;
55
55
var normalAccessor = _builder . AddAccessor ( GLtf . ComponentType . FLOAT , _count , "VEC3" , bufferView , 12 ) ;
@@ -237,7 +237,7 @@ public void ConvertFileToImages(FileInfo file, string destinationPath, double in
237
237
var imgIdx = builder . AddImage ( "image/png" , imageBufferView ) ;
238
238
var baseTexture = builder . AddTexture ( imgIdx , null ) ;
239
239
240
- var material = builder . AddUnlitMaterial ( rgba : new System . DoubleNumerics . Vector4 ( 1 , 1 , 1 , 1 ) , alphaMode : GLtf . AlphaMode . BLEND , baseColorTexture : builder . CreateTextureInfo ( baseTexture ) , doubleSided : true ) ;
240
+ var material = builder . AddUnlitMaterial ( rgba : new Speckle . DoubleNumerics . Vector4 ( 1 , 1 , 1 , 1 ) , alphaMode : GLtf . AlphaMode . BLEND , baseColorTexture : builder . CreateTextureInfo ( baseTexture ) , doubleSided : true ) ;
241
241
242
242
using ( var vertexBuffer = new VertexBufferBuilderPT ( builder ) )
243
243
{
@@ -322,7 +322,7 @@ void save(string id, (byte[] blob, string prefix, int id)[] pages)
322
322
var imgIdx = builder . AddImage ( "image/png" , imageBufferView ) ;
323
323
var baseTexture = builder . AddTexture ( imgIdx , null ) ;
324
324
325
- var material = builder . AddUnlitMaterial ( rgba : new System . DoubleNumerics . Vector4 ( 1 , 1 , 1 , 1 ) , alphaMode : GLtf . AlphaMode . BLEND , baseColorTexture : builder . CreateTextureInfo ( baseTexture ) , doubleSided : true ) ;
325
+ var material = builder . AddUnlitMaterial ( rgba : new Speckle . DoubleNumerics . Vector4 ( 1 , 1 , 1 , 1 ) , alphaMode : GLtf . AlphaMode . BLEND , baseColorTexture : builder . CreateTextureInfo ( baseTexture ) , doubleSided : true ) ;
326
326
327
327
var primitive = builder . CreatePrimitive ( attributes , mode : GLtf . DrawMode . TRIANGLES , material : material ) ;
328
328
var meshIdx = builder . AddMesh ( new [ ] { primitive } ) ;
0 commit comments