Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EliCDavis committed Jun 9, 2024
1 parent 1ffd780 commit 2f72411
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/potree-utils/extract_pointcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,6 @@ var ExtractPointcloudCommand = &cli.Command{
return err
}
fmt.Fprintf(ctx.App.Writer, "Writing pointcloud with %d points to %s", mesh.Indices().Len(), ctx.String("out"))
return ply.SaveBinary(ctx.String("out"), *mesh)
return ply.Save(ctx.String("out"), *mesh, ply.BinaryLittleEndian)
},
}
10 changes: 4 additions & 6 deletions formats/ply/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ PLY format implementation for interfacing with polyform meshes.
package example

import (
"github.com/EliCDavis/polyform/formats/ply"
"github.com/EliCDavis/vector/vector3"
"github.com/EliCDavis/polyform/formats/ply"
"github.com/EliCDavis/vector/vector3"
)


func ExampleReadWrite() {
mesh, _ := ply.Load("model.ply")

mesh, _ := ply.Load("model.ply")
scaledMesh := mesh.Scale(vector3.New(2., 2., 2.))

ply.Save(out, scaledMesh, ply.ASCII)
ply.Save(out, scaledMesh, ply.ASCII)
}
```

0 comments on commit 2f72411

Please sign in to comment.