Comments (6)
The model contains a triangle with 0 surface area - a degenerate triangle which is basically a line segment. This is either due to wrong import code, or faulty input from the user.
from pepr3d.
Also, the app does not crash in release, only behaves weirdly because of the zero-surface area triangle.
from pepr3d.
@Arokip aiProcess_Triangulate states:
This post processing step splits up faces with more than 3 indices into triangles. Line and point primitives are not modified!
Are you sure you are not importing line primitives as triangles? I am almost sure, but not quite.
from pepr3d.
Removing the 0 surface area triangle while importing solves the issue and the CGAL assertion does not fire.
from pepr3d.
@Arokip Might be worth using http://assimp.sourceforge.net/lib_html/postprocess_8h.html
aiProcess_FindDegenerates
- (if you don't support lines and points at all)
Specify the aiProcess_FindDegenerates flag.
Specify the aiProcess_SortByPType flag. This moves line and point primitives to separate meshes.
Set the AI_CONFIG_PP_SBP_REMOVE option to aiPrimitiveType_POINTS | aiPrimitiveType_LINES to cause SortByPType to reject point and line meshes from the scene.
from pepr3d.
Fixed in #38
from pepr3d.
Related Issues (20)
- Final UI polishing HOT 2
- Enable exporting simple .obj with vertex colors HOT 1
- Brush painting without continuous
- Brush better selection of segment count
- Brush paint crash HOT 1
- Documentation HOT 3
- Oskar comments
- Brush color palette commands need fixing
- Comments for unit tests HOT 1
- Make the default cube bigger
- Disable brush and text tool for non polyhedron
- Create "v1.0" tag and attach it to the final release with Assimp_for_Pepr3D.zip
- Add a Segmentation popup when user tries to Accept without coloring everything
- Flat brush preview
- Slider width
- Export assistant crash HOT 1
- file export to Slic3r HOT 1
- Final assignments for v1.0
- poly2tri is not stable HOT 2
- Any change to compile for MAC OSX
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 pepr3d.