Skip to content

Conversation

@GiudGiud
Copy link
Contributor

based on top of the hexagon tiling PR, ignore that content for now! It's in another PR

const Point x_i = side.point(0);
const Point n_i =
(side.point(1) - side.point(0)).cross
-(side.point(1) - side.point(0)).cross
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roystgnr can I please get a fact check on this line (rest is WIP)?
I'm assuming that if the nodes are ordered in the counter-clockwise direction, the normal should point up. Is that correct?

Then placing my index along P0P1 and the major following Pn-1P0 (what this formula says?) I would get down, so instead I do
P1P0 x Pn-1P0 or similarly Pn-1P0 x P0P1 and I get up (the desired result)

am I getting this wrong?

Copy link
Contributor Author

@GiudGiud GiudGiud Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok the (center - center_side) (pointing inside) is flipping the sign. So changing it is wrong here, I ll change it back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant