Welcome to %s forums

BrainModular Users Forum

Login Register

point in path - multitouch/array compatible

Tell us what you'd like Usine to do
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 15 Dec 2016, 14:25

would be cool if we could feed array in inputs XY and get array out of 'point in path' on shapes modules so that it check if any point in the array is inside shape or not.

alternative reflexion, a way to manipulate paths could be nice. for exemple externalize this 'check if in path' via a module, a module would have path input (or XY array) and do this computation,
or for exemple shift path, scale, rotate, swap operations and feed back to path module, wich somehow should be doable just adding path points XY arrays outputs on shape module.

i would pers also love to be able to manipulate in sdk as well. for exemple given a path, easily check if a given XY point is in, . or maybe is there is some workable code to compute this ?

sm_jamieson
Member
Posts: 559
Contact:

Unread post by sm_jamieson » 16 Dec 2016, 17:04

Look up "Point in polygon" in wikipedia (sorry if this states the obvious).
Many drawing libraries have this - maybe a user module could use the function from there.

This looks good:
http://geomalgorithms.com/a03-_inclusion.html

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 16 Dec 2016, 17:08

yes ive been lasy on that one^^ will try to figure this and find a code or lib. thx for sugg

User avatar
senso
Site Admin
Posts: 4425
Location: France
Contact:

Unread post by senso » 21 Dec 2016, 17:43

I'll see if I can turn the point-in-path into a multi-touch version.

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests