That I did through hands
That restored by threejs (edges are not accurate)
I checked threejs uses number with float point precision of position
and used same position that were defined
What is your question? Are you asking why three.js did not draw points along the inner path? Can you post an example of your code?
i have declarative definition
i expected to have same position of path that i had
how to make threejs draw same inner path that i had (before exporting)
let brushLoopRectArr = []
for(let i = 0; i < loopBrushRectArr.length; i++) {
let brushLoop = []
for(let brushPointer = 0; brushPointer < loopBrushRectArr[i].length; brushPointer++) {
brushLoop.push({
uuid: loopBrushRectArr[i][brushPointer].uuid,
position: loopBrushRectArr[i][brushPointer].position,
rotation: { _x: loopBrushRectArr[i][brushPointer].rotation._x, _y: loopBrushRectArr[i][brushPointer].rotation._y, _z: loopBrushRectArr[i][brushPointer].rotation._z }
})
}
brushLoopRectArr.push(brushLoop)
}
console.log(JSON.stringify(brushLoopRectArr))
and there how i restore brush
let fromPassdArr = [/* keep */ /* output of json while i am testing hypothesis and dont want to have db */]
for(let brushPointer = 0; brushPointer < /* loopArr */ fromPassdArr[pointerIntoPass].length; brushPointer++) {
let sampleBrushRectIntoPassThroughDirection = await throughPickDirection()
sampleBrushRectIntoPassThroughDirection/* compute */ .position./*set*/ copy(fromPassdArr[pointerIntoPass][brushPointer].position)
if(fromPassdArr[pointerIntoPass][brushPointer].rotation._z) {
sampleBrushRectIntoPassThroughDirection.rotation.order = 'XYZ'
sampleBrushRectIntoPassThroughDirection/* compute */ /* rotation */ .rotation./*set*/ /*copy*/ set(
fromPassdArr[pointerIntoPass][brushPointer].rotation._x,
fromPassdArr[pointerIntoPass][brushPointer].rotation._y,
fromPassdArr[pointerIntoPass][brushPointer].rotation._z
) /* keep */
}
/* bottom */
}
Comparing the images in your original post, I now see that the problem is not (as I originally guessed) that the program is not following the inner path, but that it is coloring the center area.
Are you trying to create some kind “paintbrush” which performs a “fill” operation? Something that fills the path, but not the inner area?