Giter VIP home page Giter VIP logo

Comments (4)

gkjohnson avatar gkjohnson commented on May 27, 2024

Additionally it looks like this triangle is not culled appropriately - possibly due to raycasting issues?

image

image

NEEDS NEW ISSUE

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

Tri Index 1: 40 -- and the triangle is actually just flipped

image

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024
			new THREE.Triangle(
				new THREE.Vector3( 0.6000000238418579, 0, 0.20000000298023224 ),
				new THREE.Vector3( 0.30000001192092896, 0.5196152329444885, 0.20000000298023224 ),
				new THREE.Vector3( 0.20000000298023224, 0.3464101552963257, 2.4492935397342132e-17 ),
			),
			new THREE.Triangle(
				new THREE.Vector3( 0.026990325014731087, 0.013316738318119303, 0.20000000298023224 ),
				new THREE.Vector3( 0.1269903190542666, -0.15988833933004354, 0 ),
				new THREE.Vector3( 0.32699033693566004, 0.5329319712626077, 0.20000000298023224 ),
			),
			new THREE.Triangle(
				new THREE.Vector3( 0.1269903190542666, -0.15988833933004354, 0 ),
				new THREE.Vector3( 0.5269903250147311, 0.5329319712626076, 0 ),
				new THREE.Vector3( 0.32699033693566004, 0.5329319712626077, 0.20000000298023224 ),
			),
			new THREE.Triangle(
				new THREE.Vector3( 0.026990325014731087, 0.013316738318119303, 0.20000000298023224 ),
				new THREE.Vector3( 0.32699033693566004, 0.5329319712626077, 0.20000000298023224 ),
				new THREE.Vector3( 0.1269903190542666, 0.5329319712626077, 2.4492935397342132e-17 ),
			)

image

from three-bvh-csg.

gkjohnson avatar gkjohnson commented on May 27, 2024

Reduced problem space:

const tri =	new THREE.Triangle(
	new THREE.Vector3( 0.5730096988271268, -0.013316738318119303, 0.20000000298023224 ),
	new THREE.Vector3( 0.5826606444782209, -0.2814823215350373, 0.05482547525348732 ),
	new THREE.Vector3( 0.5826606498863934, -0.0300326749298766, 0.20000000298023224 ),
);

const tris = [

	// new THREE.Triangle(
	// 	new THREE.Vector3( 0.30000001192092896, -0.5196152329444885, 0.20000000298023224 ),
	// 	new THREE.Vector3( 0.4000000059604645, -0.6928203105926514, 0 ),
	// 	new THREE.Vector3( 0.6000000238418579, -1.4695762231022014e-16, 0.20000000298023224 ),
	// ),
	// new THREE.Triangle(
	// 	new THREE.Vector3( 0.4000000059604645, -0.6928203105926514, 0 ),
	// 	new THREE.Vector3( 0.800000011920929, -1.9594348317873706e-16, 0 ),
	// 	new THREE.Vector3( 0.6000000238418579, -1.4695762231022014e-16, 0.20000000298023224 ),
	// ),
	new THREE.Triangle(
		new THREE.Vector3( 0.30000001192092896, -0.5196152329444885, 0.20000000298023224 ),
		new THREE.Vector3( 0.6000000238418579, -1.4695762231022014e-16, 0.20000000298023224 ),
		new THREE.Vector3( 0.4000000059604645, -9.797174158936853e-17, 2.4492935397342132e-17 ),
	)
];

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.