good to know
Hello it’s me again. After trying other solutions without a chance I decided to take a deeper look at your addon.
I’m not sure how I could implement a solution with your addon.
if I understand well I need to first do
geometry.createInnerGeometry = THREEi.createInnerGeometry;
but I don’t understand this part
const parametersPlanEb = {
surface: 'planecap',
d: d, // rough side length of the triangles
div4: div4D, // division of the quarter circle
tilt: Math.PI / 4,
cap: 'btm',
}
any example code I could use for my use case.
Basically I have a class Speaker
with a position
object and as mentionned earlier I need to get speakers triplets.
Thanks in advance
I’m sorry, but at some point I got out of it mentally. I obviously don’t have the patience of @PavelBoytchev, whom I admire for this in many answer series.
The InnerGeometry Inner Geometry (Triangulation) is the most complex variant and I can’t understand why you need it.
One basis of this is Triangulation sphere with holes
( => TriangulationSphereWithHoles)
You want to do something with a sphere, don’t you
I have specified the parameters on Github. see e.g.
GitHub - hofk/THREEi.js: three.js addon for triangulation of implicit surfaces and for forms with holes. The addon generates indexed BufferGeometries.
Good luck with this.
@hofk I think I’ll defenitely post a codepen example when I’l have time for both of you thank anyway
@PavelBoytchev Hello it’s me again I’ve tried implementing your solution to get correct triplets without a chance, I suspect that buffer geometry have ordered vertices but that’s not my case.
Here is what I’ve done so far
https://codepen.io/JsmithOner/pen/azoewwE
Many thanks in advance
That’s why I have proposed this:
Here is one possible use of ConvexGeometry to extract triplets (see the code between the cats). Does it group speakers in triplets?
https://codepen.io/boytchev/pen/jENgXbw?editors=0011
Yeah, see this.
ok well thanks again for your all your help and time I’ll mark this as a solution.
I didn’t know we could use the convex geometry this way.
And yes I’m used to say thanks in advance but good catch didn’t want to push you to answer my question if you didn’t had time and wish