Skip to content

Commit 59d9d3b

Browse files
authored
Merge pull request #5 from Patch2PDF/mesh-reader-bump
Mesh reader bump
2 parents 147075b + 3fdd33d commit 59d9d3b

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

gdtf-parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func ParseGDTFZipReader(zipfile *zip.Reader, readMeshes bool, readThumbnail bool
8282

8383
mesh, err := GDTFMeshReader.GetModel(
8484
conf,
85-
MeshTypes.Vector{
85+
&MeshTypes.Vector{
8686
X: float64(model.Length),
8787
Y: float64(model.Width),
8888
Z: float64(model.Height),

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/Patch2PDF/GDTF-Parser
22

33
go 1.25.4
44

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

77
require (
88
github.com/google/go-cmp v0.7.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/Patch2PDF/GDTF-Mesh-Reader v0.5.2 h1:z5xuNc7ngm3jc94qDc7Qq1/DTxkQmQyRzs4k6N11LI8=
2-
github.com/Patch2PDF/GDTF-Mesh-Reader v0.5.2/go.mod h1:4Uipj5UA1HhD3v032aSnEFlpItN80UY5zKB15mIeVwQ=
1+
github.com/Patch2PDF/GDTF-Mesh-Reader v1.0.0 h1:Io11rC8z+GQZ6HWODfE+DPMm+OS2c6ditq2PzEn6wXs=
2+
github.com/Patch2PDF/GDTF-Mesh-Reader v1.0.0/go.mod h1:4Uipj5UA1HhD3v032aSnEFlpItN80UY5zKB15mIeVwQ=
33
github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
44
github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
55
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=

pkg/types/model.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import "github.com/Patch2PDF/GDTF-Mesh-Reader/pkg/MeshTypes"
44

55
type Model struct {
66
Name string
7-
Length float32
8-
Width float32
9-
Height float32
10-
PrimitiveType string // enum
7+
Length float32 // in meter
8+
Width float32 // in meter
9+
Height float32 // in meter
10+
PrimitiveType string // enum
1111
File *string
1212
SVGOffsetX float32
1313
SVGOffsetY float32

0 commit comments

Comments
 (0)