Closed IlliaHryshchuk closed 4 years ago
Looks like this task is interconnected a bit with #17. @1m8o5s @okrdima @IlliaHryshchuk but please let me know if some of you guys have additional questions
I have an idea:
z
coordinates =0, or even move all points to 2d polygon (by moving only x
and y
coodrinates). In this way we will get something like proection of a figure (imagine that we are watching on the figure perpendicularly from the top)Polygon::convexHull()
to reject inner points Polygon::simplify()
to reject redundant pointsz
coordinate +=height of a foundation)aabb.pmin().z
)could it be "workable"? or the better algorythms exist?
Looks like this task is interconnected a bit with #17.
It is a little bit detailed algorithm, perhaps, it would be better if we have created one issue for it, i agree
Yes, in general, I imagine the whole idea in the same way. @1m8o5s please follow algorithm described here during implementation of #21.
But maybe I didn't understand the 2 step, or you made a typo. Why should we make y-coordinates 0? Do you want to make XZ projection of model? From my point of view we need XY projection. Of course, if Z component is considered as a height of the model, and XY are lenght and width. About 5 step we should think a bit more to find good and lightweight solution. Any ideas shoul be described in the appropriate issue #22.
Why should we make y-coordinates 0?
In my imagination is the same: z
coordinate have to move a figure up and down. But i have tried to move an stl figure by editing askii file, and when i change third coordinate - the figure moves up and down. When i change second coordinate - figure moves closer and further. First coordinate - lefter and righter. So that is why i decided that we should do "y=0". Is it wrong?
Looks like our imagination of 3D space and 3D coordinates are the same. Which is good. But I feel I am breaking my brain... so, break also yours by looking at the picture below) I was painting it in my phone by fingers.
How do you think what type of projection do we need? I think it is XY (green). This is why, all that you have written about Y=0, i.e. XZ projection, confuses me and makes no sense.
Does my point of view make sense to you? Or I dont understand something?)
Oh, it is my mistake, i have understood. I will re-write the algorithm now
Looks like we can close this, don't we? Since related task was done.