FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

Can't add more vertices to convex region after creating a line of vertices.

Zephy1 opened this issue ยท 5 comments

commented

Server Implementation

Paper

Server Version

1.16.5

Describe the bug

When adding vertices to a convex region, if you add them in a line no other vertices will be added.

To Reproduce

Start a convex region selection.
Add a vertex to the left.
Add a vertex to the right.
Try to add more vertices somewhere else (Part that doesn't work).

Expected behaviour

To add extra vertices.

Screenshots / Videos

2021-11-27.01-18-18.mp4

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/d477662482ef4101bb7031617300be0e

Fawe Version

1.17-409;11e2591

Checklist

Anything else?

Still present using only FAWE.
https://athion.net/ISPaster/paste/view/9e4d04e142b140e28755125c10fc14d8

Using the API to make a convex region then manually adding the points makes them appear using region.getVertices(), however, when trying to actually edit the region, only the original line of vertices is changed.

commented

From my testing, this is an issue with WE too. Could you verify that?

The implementation uses triangles and calculates a normal vector for each of them. But as the cross product of two linear dependent vectors is zero, normalizing that vector will result in (NaN, NaN, NaN).

commented

Still present using WE 7.2.7 (Latest stable) and WE 7.2.8-SNAPSHOT #5982 (Latest experimental).

commented

If that is an issue with WorldEdit as well, better report it to their issue tracker.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue is still present and can be reproduced, please let the team know. Thank you for your contributions.

commented