Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
test change ImportModel
Browse files Browse the repository at this point in the history
  • Loading branch information
soypat committed May 18, 2022
1 parent 97c8981 commit 24e22f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion helpers/sdfexp/import_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package sdfexp_test

import (
"os"
"testing"

"github.com/soypat/sdf/form3"
Expand All @@ -10,7 +11,7 @@ import (
)

func TestImportModel(t *testing.T) {
const quality = 80
const quality = 128
s, _ := form3.Sphere(5)
s, _ = thread.Bolt(thread.BoltParms{
Thread: thread.ISO{D: 16, P: 2},
Expand All @@ -21,6 +22,12 @@ func TestImportModel(t *testing.T) {
if err != nil {
t.Fatal(err)
}
fp, _ := os.Create("src.stl")
defer fp.Close()
err = render.WriteSTL(fp, model)
if err != nil {
t.Fatal(err)
}
sdf, err := sdfexp.ImportModel(model, 0)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 24e22f2

Please sign in to comment.