Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Cannot read property 'normal' of null

$
0
0

First off BabylonJS is awesome!

I am having a problem with CSG currently. This error I get only seems to happen on Chrome on Windows. Edge on Windows and all Mac works fine. 

I have an app that is creating CSG on the fly. This is for a foam case building app that I am working on. For a gun shape that has two circles for finger notches as seen in the 2d image below. You can also see in the image below the points of the polygon I am rendering. We've added two circles to the render as well. When I run this as a `CSG subtract` in BabylonJS on Chrome on Windows for certain shapes, with an example below. I get the following error: 

Jacob Schatz
 

Uncaught TypeError: Cannot read property 'normal' of null
   at Plane.splitPolygon (eval at globalEval (app.js:1), <anonymous>:48668:68)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48826:28)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)
   at Node.build (eval at globalEval (app.js:1), <anonymous>:48836:27)

 

This error is a little bit beyond my understanding of Babylon. I don't think that I have any complex lines where the lines are over lapping one another and I also don't know how to catch this error. Would be great to be able to catch the error if we can't fix it. 

Again thanks for the great library. 

ss_ 2017-01-02 at 1.06.57 PM.png

ss_ 2017-01-02 at 1.08.20 PM.png

ss_ 2017-01-02 at 1.09.14 PM.png


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>