Comments (9)
For that let me make a new code and share the link here
from three-bvh-csg.
Please provide a live, minimal example of what the issue is and what's not working. Ie no loaded models, etc so it's clear what the code flow is.
from three-bvh-csg.
Video:
2024-04-05.18-06-03.mp4
Description:
The cube shown in the video is a three-bvh-csg Operation mesh, I want its operation to be updated to SUBTRACTION when I switch the hollow type to 1 or to ADDITION when I switch it to 0. After switching if I do console.log(inside.operation)
I get 0
as the result for addition and 1
for subtraction.
Observation:
I have observed that doing inside.operation = tbc.ADDITION
and doing inside.operation = 0
are performing the same action, it's the same with subtraction but the number is 1
Thanks for replying to my issue though
from three-bvh-csg.
Please - a live example. This means something working and editable. Not a video.
from three-bvh-csg.
Oh my bad here's the code editing platform: https://glitch.com/edit/#!/
The complete source code and the working example
from three-bvh-csg.
As in my previous comment:
Ie no loaded models, etc so it's clear what the code flow is.
Unfortunately I cannot spend time dissecting almost 500 lines of code to understand what's happening. Please provide a minimal example that shows only the issue you're running in to and controls required to show it.
from three-bvh-csg.
Link:
https://glitch.com/edit/#!/summer-spurious-market
This link is for the minimal code that doesn't contain anything except the problem I am facing.
Preview:
https://summer-spurious-market.glitch.me
from three-bvh-csg.
You're modifying the operation and never rerunning the CSG operation so of course the geometry will never change:
gui
.add(params, "hollow", ["Off", 0, 1])
.name("Hollow Type")
.onChange(function (value) {
if (value == "off"){
console.log("OFF")
}
else if (value == 0){
inside.operation = tbc.ADDITION
}
else if (value == 1){
inside.operation = tbc.SUBTRACTION
}
csgEvaluator.evaluateHierarchy(meshBrush, mesh);
});
from three-bvh-csg.
Thanks for the help man, that was a minor yet dumb mistake
from three-bvh-csg.
Related Issues (20)
- Planar faces failure HOT 1
- Texture not showing when exporting scene HOT 4
- Performance Issus when two bufferGeometries evaluate HOT 1
- Weird result using Three CSG HOT 2
- New failure case HOT 1
- Fix "isTriDegenerate" function
- Intersecting edges are being incorrectly reported HOT 1
- Any hint to avoid hitting maxDepth? HOT 1
- How to use multiple ExtrudeGeometry holes HOT 2
- Clear cached bounding boxes from result
- Large performance cost for coplanar triangles HOT 13
- I would like to ask, is there anything wrong with my Boolean operation to create geometry? HOT 1
- Result object of csg evaluator doesn't have textures HOT 8
- T-vertices after subtracting mesh from a plane HOT 4
- csg operation error HOT 4
- Add a real simple example HOT 3
- Only upload the changed attribute ranges using "updateRange"
- Ensure floating point operations are done on small values where possible
- Weird geometry after second coplanar subtraction of cubes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three-bvh-csg.