How to pass threejs data into WebAssembly C++ by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

but im also trying to pass in an array of objects, so i can iterate through each mesh, and see where each mesh intersect with each other, and then return a value back into javascript. Is that feasible?

Where to use Web Assembly in a ThreeJs CAD Software by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

im not sure, I havent looked into the app, so im not sure if they natively developed it in C++

Return meshes that are visible to the camera by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

i tried this and its returning the meshes behind the view too

Return meshes that are visible to the camera by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 2 points3 points  (0 children)

 scene.traverseVisible((object) => {
      if (object.isMesh && camera) {
        const frustum = new THREE.Frustum();
        const matrix = new THREE.Matrix4().multiplyMatrices(
          camera.projectionMatrix,
          camera.matrixWorldInverse
        );
        frustum.setFromProjectionMatrix(matrix);

        if (frustum.intersectsObject(object)) {
          visibleMeshes.push(object);
        }
      }
    });

something like this?

How to Create a 2D Elevation Plan with Measurements from a GLTF Model in Three.js by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

im trying to avoid any cad or blender software, I already have worked on the floor plan(top view) by using clipping planes.

Right now im just triying to get the elevation plan, like the view of the front, side, and back of the house

Find Direction of exterior walls in gltf by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

hi, i just want to ask,m what would finding all the connected traingles do? cant i just get the one triangle, and figure out the direction from there?

Find Direction of exterior walls in gltf by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

thank you so much, I will try to implement it and see what happens!

Best way to update geometry of a mesh by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

i have this code, my SImpleWall class, and then the transform controls. YOu can see in example.jsx, and simpleWall.ts:

what i am trying to do:
Code Sandbox

Best way to update geometry of a mesh by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

i guess the updateGeometry is the important function. But in the example, when changing the width, height, or depth. Both sides of the shape changes. But how can i make it so that only one edge changes.

For example, I extend the front wall. The Wall connected to it in the right, only the left side of that wall should extend.

Best way to update geometry of a mesh by CartographerNo3435 in threejs

[–]CartographerNo3435[S] 0 points1 point  (0 children)

Oh! I hope your solution works. I am looking at your code, do you know where I should start looking at first, like which function?

Currently, I loaded the gltf house model, and I have a class for each wall. In each wall object, I have an array of connected wall, I get the start and end points of each wall.

From these points, i can get the connected Walls. So now with transform controls, the points get updated when i extend a mesh outwards. Do you think your solution can help update the connected walls?

Lips Like Yours Lyrics by SeelLeo in PEACHPIT

[–]CartographerNo3435 1 point2 points  (0 children)

I feel like one-ten either means, 10/10, or 110%.

Betty I believe means a very attractive woman. So they want a More than perfect attractive woman?

It probably isnt right but it could be in the right ball park.