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 gdtf-parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func ParseGDTFZipReader(zipfile *zip.Reader, readMeshes bool, readThumbnail bool

mesh, err := GDTFMeshReader.GetModel(
conf,
MeshTypes.Vector{
&MeshTypes.Vector{
X: float64(model.Length),
Y: float64(model.Width),
Z: float64(model.Height),
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/Patch2PDF/GDTF-Parser

go 1.25.4

require github.com/Patch2PDF/GDTF-Mesh-Reader v0.5.2
require github.com/Patch2PDF/GDTF-Mesh-Reader v1.0.0

require (
github.com/google/go-cmp v0.7.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/Patch2PDF/GDTF-Mesh-Reader v0.5.2 h1:z5xuNc7ngm3jc94qDc7Qq1/DTxkQmQyRzs4k6N11LI8=
github.com/Patch2PDF/GDTF-Mesh-Reader v0.5.2/go.mod h1:4Uipj5UA1HhD3v032aSnEFlpItN80UY5zKB15mIeVwQ=
github.com/Patch2PDF/GDTF-Mesh-Reader v1.0.0 h1:Io11rC8z+GQZ6HWODfE+DPMm+OS2c6ditq2PzEn6wXs=
github.com/Patch2PDF/GDTF-Mesh-Reader v1.0.0/go.mod h1:4Uipj5UA1HhD3v032aSnEFlpItN80UY5zKB15mIeVwQ=
github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
Expand Down
8 changes: 4 additions & 4 deletions pkg/types/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes"

type Model struct {
Name string
Length float32
Width float32
Height float32
PrimitiveType string // enum
Length float32 // in meter
Width float32 // in meter
Height float32 // in meter
PrimitiveType string // enum
File *string
SVGOffsetX float32
SVGOffsetY float32
Expand Down