Drawing outside edges of a Mesh created from CSG

Yes, alpha are built several times a week I think.

To use in Typescript, I think you need to get a npm package, but those are not built so often, maybe once a week or every 10/12 days.

1 Like

I currently use babylonjs as a npm package, but I couldnt find a npm package for the preview.

It seems the package is named babylonjs@preview.

npm show babylonjs@preview gives:

1 Like

I installed the preview .25.

I get the same artifacts as before. Hasn’t it been merged yet (On Github I read it should have been merged 1-2 days ago) ?
Or do I have to activate any flag? (At least tsc doesnt tell me anything)

This does work for me:

https://playground.babylonjs.com/#0HA29N

Make sure you clean the cache of your browser if it doesn’t work for you.

Note that you have to pass a new object parameter to enableEdgesRendering:

{ useAlternateEdgeFinder: true, applyTessellation: true, useFastVertexMerger: false }

You can omit the useAlternateEdgeFinder parameter because true is the default value if not provided, but for your use case you must set applyTessellation = true (false by default) and useFastVertexMerger = false (true by default) for the PG to work.

2 Likes

I think the type definitions have to be updated.
At least my TypeScript IDE is complaining, but the code works.

Edit:

I don’t want to cherry pick, but will this missing edge be fixed?
grafik

Unfortunately no, there are limits to the technic.

This artifact is due to the epsilon value used. If you use 0.99 instead of 0.95 you get:

It solves the problem but add additional edges you don’t want…

1 Like