Garrett Johnson

Results 1078 comments of Garrett Johnson

Rollup supports this, Parcel supports it, and Webpack will support it more cleanly in the next release.

Hey @tommimarkus! Unfortunately I haven't done any testing on mobile for this shader. Can you give a bit more information on what your scene setup is? Are you using the...

Relating to #49 - implementing a better strategy for clipping and then triagulating polygons will leave more edges full intact and ultimately afford more connectivity in addition to being faster....

Polygon triangulation: - https://algo.kaust.edu.sa/Documents/cs372l05.pdf - https://en.wikipedia.org/wiki/Polygon_triangulation Three.js may already have a good implementation: - https://github.com/mrdoob/three.js/blob/master/src/extras/Earcut.js

- Construct polygon edge sets with a set of pre-connected edges for the triangle - When a splitting by a triangle - Find the intersection edge overlap - If the...

Brush1 Tri: 8 ```js new THREE.Triangle( new THREE.Vector3( -0.5, 0.5, 0.5 ), new THREE.Vector3( -0.5, -0.5, 0.5 ), new THREE.Vector3( 0.5, 0.5, 0.5 ), ) ``` Brush2 Tri: 9 ```js...

This is occurring because coplanar results are not supported with the clip. Somewhat alleviated with https://github.com/gkjohnson/three-mesh-bvh/pull/436: ![image](https://user-images.githubusercontent.com/734200/174355195-7f24c8fe-b92f-478d-ba10-6b93433eb446.png)

It's also just not reporting intersections in some cases:

Fixing up https://github.com/gkjohnson/three-mesh-bvh/pull/428 may be the best option.