sbrl / Minetest-WorldEditAdditions

Extra tools and commands to extend WorldEdit for Minetest
https://worldeditadditions.mooncarrot.space/
Mozilla Public License 2.0
16 stars 3 forks source link

Point Cloud Selection #31

Closed VorTechnix closed 3 years ago

VorTechnix commented 3 years ago

Here is the separate issue for 5 and 6 point cloud selections.

To Reiterate, the idea is to create a standard 2 point selection big enough to encompass a target using 5-6 points selected on that target.

The basic working of the feature would be to simply find the minimum x y and z values of the 5 or 6 point cloud and assign them to the first point of the 2 point (normal) selection, then take the maximum x y and z values of the point cloud and assign them to point 2 of the normal selection.

Moreover, you brought up the idea of making a wand to assist with the task. I'm not sure how you would implement that especially for the case where one point needs to be moved but I'm sure you'll come up with an idea about that.

As for the actual invocation command I'm thinking //cloudset [re-set number (1-6)]. My other idea was //pc set [re-set number (1-6)]. As always let me know if you have any questions.

sbrl commented 3 years ago

In theory, such a wand would work like this:

This way, we'd be able to use an arbitrary number of points. In addition, we wouldn't even have to store them - just use each successive point to expand the defined region.

VorTechnix commented 3 years ago

I actually like that idea a lot. We could place as many points as we want and simply clear them if we screw up.

sbrl commented 3 years ago

Implemented!