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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Patch2PDF/GDTF-Mesh-Reader
module github.com/Patch2PDF/GDTF-Mesh-Reader/v2

go 1.25.4

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/file_handlers/3ds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/file_handlers/gltf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/primitives/cube.go
Original file line number Diff line number Diff line change
@@ -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{
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitives/cylinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/primitives/primitives.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitives/sphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/MeshTypes/matrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/MeshTypes/mesh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/MeshTypes/triangle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/MeshTypes/vector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/MeshTypes/vertex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down