Comments (4)
I haven't tried, but it's worth a try. Nevertheless, it wouldn't hurt adding a test for Project()
, to make it easier to test things like this without doing it via OpenSCAD.
from manifold.
OpenSCAD crashes on projection() import("file.obj")
with this OBJ file.
projection()
in OpenSCAD currently just calls Manifold::Project()
Note: This is slimmed down from the GEB example in OpenSCAD: https://github.com/openscad/openscad/blob/master/examples/Advanced/GEB.scad
# OpenSCAD obj exporter
v -2 -0.7 -0.1
v -2 -0.7 0
v -1.9 -0.7 -0.1
v -1.9 -0.6901 -0.1
v -1.9 -0.7 0
v -1.9 -0.6901 0
v -2 -1 3
v -1.9 -1 3
v -2 -1 4
v -1.9 -1 4
v -1.9 -0.6901 3
v -1.9 -0.6901 4
v -1.7 -0.6901 3
v -1.7 -0.6901 3.2
v -2 0 -0.1
v -2 0 0
v -2 0 3
v -2 0 4
v -1.7 0 3
v -1.7 0 3.2
v -1 -0.6901 -0.1
v -1 -0.6901 0
v -1 -0.6901 3.2
v -1 -0.6901 4
v -1 0 -0.1
v -1 0 0
v -1 0 3.2
v -1 0 4
f 1 3 2
f 1 4 3
f 2 3 5
f 5 6 2
f 3 4 6
f 5 3 6
f 6 4 21
f 26 22 25
f 21 25 22
f 25 15 26
f 26 6 22
f 21 4 25
f 21 22 6
f 16 26 15
f 16 6 26
f 4 15 25
f 15 1 16
f 16 2 6
f 4 1 15
f 1 2 16
f 12 14 23
f 12 13 14
f 12 11 13
f 18 9 12
f 11 7 17
f 7 9 18
f 17 7 18
f 13 11 19
f 17 18 20
f 19 11 17
f 19 17 20
f 14 13 20
f 18 12 24
f 20 13 19
f 20 18 27
f 12 10 11
f 24 12 23
f 9 10 12
f 9 8 10
f 8 11 10
f 8 7 11
f 8 9 7
f 14 20 27
f 24 28 18
f 27 18 28
f 23 14 27
f 24 23 28
f 28 23 27
from manifold.
if you update to the latest version of clipper2, does it work?
from manifold.
I did add Project()
to a couple of samples tests: Bracelet and Sponge4. But yes, a dedicated test is also a good idea. Any chance you can dump out a GLB or OBJ we can test with?
from manifold.
Related Issues (20)
- vertex halfedge iterator
- Manifold 2.4.5 release tar.gz is incomplete HOT 3
- Vec out of Range HOT 8
- Python binding needs two import call HOT 4
- Manifold Decompose doesn't preserve vertex properties HOT 4
- memory leak when TBB and PSTL is enabled HOT 27
- Triangulate bug: Two separate polygons HOT 5
- [Question] robust geometric predicates, polygon triangulation
- Warning comparison of integer expressions of different signedness
- Modularize Manifold HOT 25
- Build without exceptions HOT 3
- Remove Thrust HOT 19
- How to figure out required size of mem in the C-API? HOT 1
- gcc14 build failure HOT 7
- Triangulation issue: Zebra HOT 3
- BSD compiler error HOT 1
- Another Zebra Triangulation issue HOT 6
- Port for vcpkg HOT 2
- use size_t whenever possible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manifold.