diff --git a/go.mod b/go.mod index dcc9183..b63fbbd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Patch2PDF/GDTF-Mesh-Reader +module github.com/Patch2PDF/GDTF-Mesh-Reader/v2 go 1.25.4 diff --git a/main.go b/main.go index cb23da0..722e4d1 100644 --- a/main.go +++ b/main.go @@ -5,9 +5,9 @@ import ( "io" "path/filepath" - "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" - FileHandlers "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/file_handlers" - Primitives "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/primitives" + "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" + FileHandlers "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/file_handlers" + Primitives "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/primitives" ) type ModelReaderConf struct { diff --git a/pkg/file_handlers/3ds.go b/pkg/file_handlers/3ds.go index 9e03e7a..17ee5c1 100644 --- a/pkg/file_handlers/3ds.go +++ b/pkg/file_handlers/3ds.go @@ -26,7 +26,7 @@ import ( "encoding/binary" "io" - MeshTypes "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + MeshTypes "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func Load3DS(fileData *[]byte, desiredSize *MeshTypes.Vector) (*MeshTypes.Mesh, error) { diff --git a/pkg/file_handlers/gltf.go b/pkg/file_handlers/gltf.go index 5aad96c..972fcce 100644 --- a/pkg/file_handlers/gltf.go +++ b/pkg/file_handlers/gltf.go @@ -6,7 +6,7 @@ import ( "io" "math" - Types "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + Types "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" "github.com/qmuntal/gltf" ) diff --git a/pkg/primitives/cube.go b/pkg/primitives/cube.go index ef33f04..b2761ba 100644 --- a/pkg/primitives/cube.go +++ b/pkg/primitives/cube.go @@ -1,6 +1,6 @@ package Primitives -import Types "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" +import Types "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" func NewCube() Types.Mesh { v := []Types.Vector{ diff --git a/pkg/primitives/cylinder.go b/pkg/primitives/cylinder.go index baf5618..2f1a053 100644 --- a/pkg/primitives/cylinder.go +++ b/pkg/primitives/cylinder.go @@ -24,7 +24,7 @@ package Primitives import ( "math" - Types "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + Types "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func radians(degrees float64) float64 { diff --git a/pkg/primitives/primitives.go b/pkg/primitives/primitives.go index b5da004..d1eb208 100644 --- a/pkg/primitives/primitives.go +++ b/pkg/primitives/primitives.go @@ -3,8 +3,8 @@ package Primitives import ( "embed" - Types "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" - FileHandlers "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/file_handlers" + Types "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" + FileHandlers "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/file_handlers" ) //go:embed assets/1.0/*.3ds diff --git a/pkg/primitives/sphere.go b/pkg/primitives/sphere.go index e1658da..c9c2b6f 100644 --- a/pkg/primitives/sphere.go +++ b/pkg/primitives/sphere.go @@ -21,7 +21,7 @@ package Primitives // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -import Types "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" +import Types "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" func NewSphere(detail int) Types.Mesh { var triangles []Types.Triangle diff --git a/tests/MeshTypes/matrix_test.go b/tests/MeshTypes/matrix_test.go index 4d1e4a0..156a2ca 100644 --- a/tests/MeshTypes/matrix_test.go +++ b/tests/MeshTypes/matrix_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func TestIdentityMatrix(t *testing.T) { diff --git a/tests/MeshTypes/mesh_test.go b/tests/MeshTypes/mesh_test.go index f6c6a83..3debf7e 100644 --- a/tests/MeshTypes/mesh_test.go +++ b/tests/MeshTypes/mesh_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func RandomTriangle() MeshTypes.Triangle { diff --git a/tests/MeshTypes/triangle_test.go b/tests/MeshTypes/triangle_test.go index a7e1b52..69cf6e7 100644 --- a/tests/MeshTypes/triangle_test.go +++ b/tests/MeshTypes/triangle_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func TestTriangleNormal(t *testing.T) { diff --git a/tests/MeshTypes/vector_test.go b/tests/MeshTypes/vector_test.go index 3d21f99..2b2aea4 100644 --- a/tests/MeshTypes/vector_test.go +++ b/tests/MeshTypes/vector_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func TestVectorDivScalar(t *testing.T) { diff --git a/tests/MeshTypes/vertex_test.go b/tests/MeshTypes/vertex_test.go index 856cee4..25c3b4f 100644 --- a/tests/MeshTypes/vertex_test.go +++ b/tests/MeshTypes/vertex_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes" + "github.com/Patch2PDF/GDTF-Mesh-Reader/v2/pkg/MeshTypes" ) func TestVertexCopy(t *testing.T) {