Giter Club home page Giter Club logo

Comments (4)

ereator avatar ereator commented on July 30, 2024 1

@otmanesabir, thank you so much your wish to help. I have created an issue #35 as a feture request / enhancement, where we can discuss flipping normals.

from openrt.

otmanesabir avatar otmanesabir commented on July 30, 2024

Hi @ereator

Thank you for raising the issue 👍
Apologies for the delayed response. I somehow never received a notif for this.
Seems like a case where the normal should be flipped. I will have a look at this and fix it ASAP.
Could you maybe assign me this issue here on GitHub?

from openrt.

ereator avatar ereator commented on July 30, 2024

Hi @otmanesabir
Thanks for the answer. Meanwhile I have fixed the bug.
I believe there was a typo: When substract B from A, we need to invert the normals all the time only for B and never for A. So I just moved lines 297 - 300 to the second part of the condition checking - just after the line 304.
I also done a small code simplification.

Next, I plan to get rid of the dummy primitive by introducing a method void IPrim::flipNormal(void).

from openrt.

otmanesabir avatar otmanesabir commented on July 30, 2024

thank you for taking it on and fixing it in the commit! it looks good to me :)

Meanwhile, I'd like to take on adding the mentioned method if possible - I can open a PR for it the upcoming weekend as it should be quite straightforward :)

from openrt.

Related Issues (13)

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.