Giter VIP home page Giter VIP logo

Comments (7)

gkjohnson avatar gkjohnson commented on May 27, 2024

Similar happens with sphere:

image

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

It seems that edge intersections are not being found somehow:

image

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

Shows up with low complexity (0) sphere and torus:

image

at this position:

brush2.position.set( -0.5500082923892159, 0.7015423371475576, 0 );
brush2.scale.setScalar( 1 );

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

image

			new THREE.Triangle(
				new THREE.Vector3( -0.800000011920929, 9.797174158936853e-17, 0 ),
				new THREE.Vector3( -0.4000000059604645, -0.6928203105926514, 0 ),
				new THREE.Vector3( -0.30000001192092896, -0.5196152329444885, 0.20000000298023224 ),
			),
			new THREE.Triangle(
				new THREE.Vector3( -0.731643925500216, -0.1074746654349924, 0.5690170025825501 ),
				new THREE.Vector3( -1.1377935363772531, -0.1074746654349924, 0.01 ),
				new THREE.Vector3( -0.5500082923892159, -0.29845766285244235, 0.010000000000000116 ),
			)

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

Looks like it works in three-mesh-bvh, though...

Next steps: log the intersection checks

image

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

Looks like this is a bug in bvhcast. Returning that the bounds always intersect results in correct results:

image

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

Fixed in gkjohnson/three-mesh-bvh#437

from three-bvh-csg.

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.