Skip to content

Support for proper tick marks by adding a 'tick' marker and rotation_mode 'curve'#1209

Merged
almarklein merged 22 commits intomainfrom
ticks
Oct 7, 2025
Merged

Support for proper tick marks by adding a 'tick' marker and rotation_mode 'curve'#1209
almarklein merged 22 commits intomainfrom
ticks

Conversation

@almarklein
Copy link
Copy Markdown
Member

@almarklein almarklein commented Oct 6, 2025

Closes #1145

  • Add PointsMarkerMaterial.rotation_mode 'curve', which calculates the rotation of the current marker by following the curve of the line defined by the vertices.
  • Add PointsMarkerMaterial.marker 'tick', which is an infinitely thin line piece; the edge of the marker is the tick. This is nice, because now the edge_width and size of the marker can be used to control the width and length of the tickmarks.
  • Added 'lefttick' and 'righttick' markers for when you only want the tick on one side of the line.
  • Update the ruler to use the above.
  • Also some improvements to ruler in terms of input args, typing, and docs.
image image

@almarklein
Copy link
Copy Markdown
Member Author

Rotation_mode 'curve': Imagine a weird projection, like polar or a map ... it will still work :)

@almarklein almarklein marked this pull request as ready for review October 6, 2025 14:42
@almarklein almarklein requested a review from Korijn as a code owner October 6, 2025 14:42
Korijn
Korijn previously approved these changes Oct 6, 2025
Korijn
Korijn previously approved these changes Oct 6, 2025
Korijn
Korijn previously approved these changes Oct 7, 2025
@almarklein almarklein marked this pull request as draft October 7, 2025 07:52
@almarklein
Copy link
Copy Markdown
Member Author

Also added support to put the tick markers only on one side of the line (half-ticks):

image

@almarklein almarklein marked this pull request as ready for review October 7, 2025 08:04
@almarklein
Copy link
Copy Markdown
Member Author

Sorry for keeping adding stuff :) rdy now

Comment thread examples/screenshots/validate_points_markers.png
Comment thread examples/screenshots/validate_points_markers.png
@almarklein almarklein merged commit c76afb7 into main Oct 7, 2025
13 checks passed
@almarklein almarklein deleted the ticks branch October 7, 2025 13:00
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.

Better tick markers instead of dots

2 participants