Git Product home page Git Product logo

Comments (6)

hojdars avatar hojdars commented on July 19, 2024

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.

hojdars avatar hojdars commented on July 19, 2024

Also, the app does not crash in release, only behaves weirdly because of the zero-surface area triangle.

from pepr3d.

hojdars avatar hojdars commented on July 19, 2024

@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.

hojdars avatar hojdars commented on July 19, 2024

Removing the 0 surface area triangle while importing solves the issue and the CGAL assertion does not fire.

from pepr3d.

hojdars avatar hojdars commented on July 19, 2024

@Arokip Might be worth using http://assimp.sourceforge.net/lib_html/postprocess_8h.html

aiProcess_FindDegenerates

  1. (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.

Fro-Z avatar Fro-Z commented on July 19, 2024

Fixed in #38

from pepr3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.