78 questions
0
votes
2
answers
111
views
OpenSCAD objects rotating around a circle
I have this code, which is supposed to make multiple fans which rotate around this circle, however I am unsure what went wrong. Pretty sure it's my bad math, haha.
This is what comes out of it:
I've ...
0
votes
0
answers
111
views
Using React Three CSG and Fiber, how can I use an uploaded STL file as the source for a subtraction?
I want to upload two stl files, and create a subtraction against the first stl using the second. When I upload a single stl and try to subtract using a Three based geometry it works well, but when I ...
1
vote
0
answers
95
views
STEPCAFControl_Writer not writing the SubShape data like Names and Colors
I am working on importing a STEP file and then exporting it back but changing their appearance using color and material. I am able to export color information for Compounds and Solids but when I try ...
1
vote
0
answers
40
views
How to store face properties for a CGAL Nef_Polyhedra for convex decomposition
I need to use the CGAL convex decomposition algorithm but it seems to only work for a Nef_Polyhedra object. Also, my 3D mesh needs to have face properties (like those provided by the Surface_mesh ...
2
votes
0
answers
122
views
Three.js CSG subtraction sometimes brake mesh
I have strange behaviour that only on some specific angles of my meshes the result is broken. The red meshes are the meshes which cut the cube. Seems only the problem when 2 cutting meshes are near:
...
0
votes
0
answers
251
views
Problem with subtraction of two cylinders using CSG and three.js
I am trying to do (what seems to me) a simple csg operation using three.js and ThreeCSG, but i don't get anywhere.
I am using the webgl_buffergeometry_indexed.html example as template for rendering ...
0
votes
1
answer
100
views
Memory leak, CSG import, THREEJS
I was able to make this example working https://sbcode.net/threejs/engraving/.
I am now looking to engrave my Mesh previously imported from GLB file in the scene.
Below my code:
const loader = new ...
8
votes
1
answer
953
views
ThreeJS CSG Problem intersecting extruded shapes
I have many views that I'm trying to extrude and then intersect in order to create a final polygon. The problem is that the result is not the expected, it has some floating extra parts. I need to ...
0
votes
1
answer
625
views
Babylonjs Subtracting Cylinder From Mesh Solid
I've put together a simple test using CSG in Babylon. I am trying to subtract the cylinder "hole" from the "upright" panel that I have created. However, It's not working properly....
1
vote
1
answer
150
views
OpenSCAD: How to avoid extra grouping in CSG tree
I want to write a module that can optionally combine its children as either a union or a difference.
module u_or_d(option="d") {
if (option == "d") {
difference() ...
1
vote
0
answers
517
views
How to go from STEP geometry to CSG
I am trying to transform a solid created in a CAD program (saved in a STEP file) into a CSG object constructed with simple primitives.
I am not very familiar with the different geometry file formats ...
2
votes
1
answer
620
views
How to compute boolean intersection between 3 geometries using vtk?
I'm trying to compute the intersection between 3 geometries using VTK.
I've started with the BooleanOperationPolyDataFilter example and made minor tweaks such as:
Adding a third sphere:
vtkNew<...
0
votes
1
answer
244
views
getting error "requested module './three-csg.js' does not provide an export named 'CSG' "
i am doing some simple CSG operations on cube and sphere.. for that, i am using three-csg.js library form "https://github.com/manthrax/THREE-CSGMesh" after giving operations I am getting ...
4
votes
0
answers
413
views
Why is this CSG Library subtract function leaving behind vertices?
I'm currently using this CSG library to subtract two solids. I chose this particular library in order to work with the .NET Framework 4.5 dependency of my project. My goal is to be able to ...
1
vote
1
answer
203
views
Break solid into constituent parts
The following 3d model-in stl format-is composed of cuboids and cylinders
How can I extract the dimensions and coordinates of these constituent solids from the composite, i.e. the dimensions and ...
0
votes
1
answer
427
views
How can I extrude a list of 2DPoints to a Mesh and subtract these extrusions in C#? [Constructive Solid Geometry]
I am struggling already a couple of days with a problem regarding Constructive Solid Geometry. Actually I start from a list of 2DLines (with 2DPoints) that I have to extrude in the 3D-space. That is ...
0
votes
1
answer
250
views
React threejs merge two tubes to create a tee-piece with CSG not working as expected
I am trying to create a tee-piece which is a fitting in the plumbing domain. It consist of 2 tubes that are merged together and has 3 openings as shown in this picture.
I have written some code in ...
1
vote
1
answer
862
views
Why Pymesh boolean operations extremely slow with my simple geometry setup?
I am testing the efficiency of boolean operations in pymesh to see how fast it calculate boolean. But the performance I got using the default engine was extremely slow, comparing to the libigl paper
...
1
vote
1
answer
342
views
intersecting meshes results to mesh with wholes
I am using THREE and I am trying to intersect a box mesh with a custom geometry I am creating and converting it to geometry using :
const g = new THREE.Geometry().fromBufferGeometry(shape3d)
I aim to ...
0
votes
1
answer
258
views
SabreCSG in Unity3D can't make build (error CS0246: The type or namespace name '***' could not be found)
I have tried in several ways (even created empty project and installed sabreCSG in my unity).
I am using unity 2017.4.3, Unity 2019.3.6 and Unity 2020 latest version as well.
It runs normally in ...
1
vote
1
answer
528
views
How to use CSGTree for multiple boolean operations
I'm trying to make use of Csg Tree by libigl to do multiple boolean operations at once. In the linked tutorial, there is just this one line:
// Compute result of (A ∩ B) \ ((C ∪ D) ∪ E)
igl::copyleft::...
2
votes
1
answer
758
views
How to make a mesh manifold
I tried trim_with_solid method to drill a hole into a 3D model:
igl::copyleft::cgal::trim_with_solid(m_VA, m_FA, m_VB, m_FB, m_V, m_F, m_D, m_J);
But for hollowed 3D models with inner and outer walls,...
2
votes
1
answer
516
views
Efficient 2D triangle-triangle subtraction, removing one triangle from another, returning the remainder as triangles
I'm interested in writing a my own function that subtracts one 2D triangle from another, returning the remainder as a n array of triangles. (not using an existing geometry library)
Two examples of ...
0
votes
1
answer
460
views
Drawing outside edges of a Mesh created from CSG in babylon.js
I have following scene with csg:
https://www.babylonjs-playground.com/#KUM5WC#14
I want to draw only the outside edges of the final plate and the ones of the holes (In playground it needs very long to ...
2
votes
1
answer
851
views
CSG (THREE.js) » Import local csg.js into another JS-File?
I want to work with THREE.js and especially with CSG, so that I can subtract two obj models from each other using boolean operations.
For this purpose I import the respective local files in a central ...
4
votes
1
answer
690
views
Is it possible to use jcsg library with Processing?
Processing is a creative coding platform - language, IDE & ecosystem - maintained by the Processing community with the backing of the Processing Foundation https://processing.org. Processing Java ...
10
votes
1
answer
23k
views
How to perform Boolean operations in mesh in Unity?
I have Cube model and Cylinder model. I want to make a hole inside Cube by Cylinder, how can I make it?
I have these two models:
And I want to make this:
0
votes
0
answers
513
views
Using ThreeCSG with BufferGeometry is giving me weird results - missing faces
When trying to subtract or union two meshes (TextGeometry and BufferGeometry), result meshes have missing faces and opposite results, I am using ThreeCSG that supposedly support buffer geometry, I ...
1
vote
0
answers
327
views
How do I rotate a mesh about its axis with three.js?
Three.js beginner here, I'm trying to create a 3d-ring like structure composed of separate meshes that I union together using CSG. I managed to place each of the separate meshes along a circle. How do ...
0
votes
1
answer
712
views
Controlling the scaling of custom geometries in Three.js
I have a custom object which is a subtraction of two meshes. This subtraction creates a frame-like object.
createFrame (x, y, z) {
const frameMesh = new THREE.Mesh(new THREE.BoxGeometry(1,1,1));
...
0
votes
1
answer
2k
views
How can I subtract one Model3D object from another using HelixToolkit or 3D WPF?
I am using the HelixToolkit.Wpf library to create some graphics for my application. I know that Helix provides a CuttingPlanesGroup that gives you the ability to create images like this one:
https://i....
3
votes
0
answers
429
views
Issue with Carve CSG c++. Wrong vertex included in result
Hello I have a problem with Carve but I am unsure if it is with the implementation or my usage of it.
Here is isolated code which exhibits the issue I have. Essentially I am getting the wrong result, ...
0
votes
1
answer
594
views
Is there a way to do dynamic CSG in Javascript?
I'm very new at Javascript and coding. I use Three.js to make a scene where there is a glass, in which liquid moves depending upon events (mouseMove, click...). I thought about Constructive Solid ...
1
vote
1
answer
2k
views
After using the threeBSP method, the created spheres are not smooth
I'm trying to change the number of segments of the sphere, but I can't cut it if I have reached the 45 limit, and there's no other way to make the sphere a little smoother.
var result;
var sphereG = ...
1
vote
1
answer
2k
views
Suggestion on how to create a window over a wall
I am working on a three.js application where I have to create a building structure (all on ground floor), the height, width, length will be specified by user. User can change wall and roof color (...
1
vote
1
answer
902
views
threeJS / threeCSG - stray edges on coplanar faces after threeCSG boolean functions when using EdgesGeometry
I am using EdgesGeometry to show the outer edges of the mesh as so : EdgesGeometry( geometry, thresholdAngle ).
This normally works as expected but after a using threeCSG to either 'subtract' or '...
1
vote
1
answer
2k
views
Three.js 2D CSG - intersect, union, subtract
I'm using csg.js with three.js and it seems it only supports 3D CSG.
Check
this
I would like to intersect and union 2D (three.js)geometries.
Is there any way I can do 2D CSG with three.js ?
1
vote
0
answers
84
views
Inverse() of a 3D shape with ThreeCSG
I'm trying to invert a 3D shape using ThreeCSG (get the empty spaces of the original shape) but it looks like they didn't include the inverse function from the original CSG:
inverse: function() {
...
3
votes
1
answer
8k
views
3D Boolean operations with Three CSG
Following the example here:
http://learningthreejs.com/blog/2011/12/10/constructive-solid-geometry-with-csg-js/
And using Three.js with https://github.com/chandlerprall/ThreeCSG, I'm trying to do ...
0
votes
1
answer
1k
views
Substract 3D text to a Geometry in Three.js
I want to transform my 3D text to Geometry so I can use it with CSG (I used a Three.js CSG wrapper also) to substract it from another object like in this question.
My 3D text :
loader.load('...
1
vote
2
answers
1k
views
Three.js: how to force update matrix after cloning? (to use with CSG ThreeBSP)
I'm trying to clone and then scale a mesh, but scaling does not seem to be working immediately on the cloned object, for programming purposes using CSG ThreeBSP. I think I should call a function after ...
1
vote
0
answers
53
views
Finding Mesh Changes/Difference from an existing 3DR
Say a Tango (Unity) device is used in a controlled room, where all objects and walls are stationary and pre-known.
You take a 3DR scan of the room, and have a good ADF.
How could you approach ...
0
votes
0
answers
151
views
Digging a polygon according to another with libgdx
I actually develop a 3D application on Android, and i manipulate 3D object.
I want to dig a polygon according to another polygon form such as a cube or a cylinder.
In the following image you can ...
1
vote
0
answers
638
views
How to use CSG with VTK in python?
I want to use CSG with VTK in python to perform substractions.
I already have VTK installed.
For the CSG I was thinking to install: https://pypi.python.org/pypi/pycsg .
How would I go around using ...
2
votes
1
answer
1k
views
Transformation and CSG Operations on grid in OpenVDB
OpenVDB seems really amazing, and the addressing of the nodes is really smart. There are some operations that I don't understand, in particular CSG operations. This is a example code. It takes as ...
3
votes
1
answer
452
views
ThreeJS : CSG (Wrapper?) [closed]
I've been using the standalone ThreeCSG.js (https://github.com/chandlerprall/ThreeCSG) to create different shapes but I'm having errors occur with some shapes I'm trying to create: Maximum call stack ...
0
votes
1
answer
307
views
CSG - Boolean operation using a CSG.Plane
I can define a CSG.Plane with a normal and a constant w like this:
CSG.Plane = function(normal, w) {
this.normal = normal;
this.w = w;
};
How can I now use this CSG plane in a boolean ...
2
votes
0
answers
849
views
How to create hollow geometries with holes in Three.js (without CSG.js?)
I'd like to create a hollow box with some holes in Three.js.
Currently I managed to create a hollow box by creating a regular geometry and pushing triangles by hand (I created the inner box and than ...
0
votes
1
answer
498
views
How add texture to a three.js after it has gone throught a CSG.js process?
This my code:
var materialNormal = new THREE.MeshNormalMaterial();
var cubeGeometry = new THREE.CubeGeometry( 20, 500, 1000, 1, 1, 1 );
var cubeMesh = new THREE.Mesh( cubeGeometry );
cubeMesh....
0
votes
1
answer
3k
views
Subtracting Geometry in Three.js (or really, 3D programming in general)
I'm currently working on a small project with which I need to subtract a rectangular area of a cube on mousemove (think, an indented area for placing a door on a house). The 'door' would be 'placed' ...