Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

difficult to create these specific arrows in this specific order #3025

Open
divinity76 opened this issue Dec 27, 2017 · 7 comments
Open

difficult to create these specific arrows in this specific order #3025

divinity76 opened this issue Dec 27, 2017 · 7 comments

Comments

@divinity76
Copy link

divinity76 commented Dec 27, 2017

try to re-create the arrows here https://i.imgur.com/2h0h67F.png in the order implied, arrow 4 is practically impossible to create (because instead it thinks you want to edit arrow 3)

@Shadowfied
Copy link

I've run into this issue too. Is it possible for the arrows to only count their "hitbox" on the actual space of the arrows, rather than it's containing box?

@Jaex
Copy link
Member

Jaex commented Dec 27, 2017

There is a way to calculate exact hit box of shape but for performance concerns I was instead used rectangle. Solution should be again using rectangle but rotated one to fit arrow shape but it would require knowing trigonometry.

@Shadowfied
Copy link

Another possible "solution", wouldn't be as elegant, but have a button or something that toggles whether you can actually move or target the other arrows after you've placed them, and only let you place new ones.

@Jaex
Copy link
Member

Jaex commented Dec 28, 2017

One workaround for this issue is hold mouse click outside and hold ctrl to move it while creating arrow.

@divinity76
Copy link
Author

@Jaex obviously not ideal, but indeed it works!

@douglasg14b
Copy link

douglasg14b commented Mar 12, 2018

@Jaex I assume a normal box is being used for the arrows instead of a minimum bounding box?

This may be helpful if that's the case: https://gist.github.com/douglasg14b/98023ded67c61369709e5b82b8ffba46

I made this for a receipt parser, and I'm pretty sure it worked and doesn't require any dependencies (Point or PointF might be an Emgu dependency?), it was made quite a while ago so my memory may be rusty.

@Jaex
Copy link
Member

Jaex commented Mar 13, 2018

Reason for using rectangle bounding box is performance.

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

No branches or pull requests

4 participants