NetLogo / NetLogo/NetLogo

Shape clipping is very inconsistent

Open
#823 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

editor gui
Dominant language
Scala
Stars
1.2k
Forks
272
PR merge metrics
No merged PRs in 30d

Description

Here's a shape:

image

Here's that shape at heading = 0, size = 1:

image

Here's that shape at heading = 45, size = 1:

image

Here's that shape at heading = 0, size = 1.1:

image

Here's that shape at heading = 0, size = 2:

image

Here's that shape at heading = 0, size = 3:

image

Here's the code for that model: https://gist.github.com/qiemem/7aa5a011922280897fad

Here's the code where at least some of the clipping occurs: https://github.com/NetLogo/NetLogo/blob/d719f06cbb80e58e57341d38141b1c28d8412bbd/src/main/org/nlogo/render/TurtleShapeManager.java#L166

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/main/org/nlogo/render/TurtleShapeManager.java around line 166, where the issue identifies clipping, and use the linked model code to reproduce the reported heading and size combinations. Compare the rendered shapes with the attached examples and determine the expected clipping behavior for each case. Done means clipping is consistent across the listed headings and sizes, with regression coverage if the existing test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.