Tiles and tile maps
 1-3  4-23  24-43  44-49

Previous
Next
 From:  Karsten (KMRQUS)
8663.4 
p.s.:https://en.wikipedia.org/wiki/Bresenham's_line_algorithm
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.5 
Thanks everyone.
Cool node Karsten!

The quarter circle version of the Truchet tile pattern will make a good CNC wood carving project.
A few years ago I was unable to figure out the pattern, seen on a TV show, (as it is pseudo-random.)

https://en.wikipedia.org/wiki/Truchet_tiles

The code for Truchet tiles is simple modular arithmetic for random index of 2 or 4 patterns.
http://jean-paul.davalan.pagesperso-orange.fr/divers/truchet/truc.html

The 2D geometry for a set of 4 tiles can be located in Top View in quadrant 3.
Different sets of tiles may be created, curved fat line, duotone, etc.
The program will need to select, by index, the appropriate tile, and place a copy in quadrant 1, to create the row/column pattern.

So create the 4 geometric tiles, name them, and place the names in an array.
Select by Index the name of one tile, and copy the geometry.
The lower left hand corner point should work for copying to row/column.

PDF will be exported to Aspire, for routering.

- Brian

EDITED: 3 Nov 2017 by BEMFARMER

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
8663.6 In reply to 8663.5 
Hello Brian,
thanks for the infos - that makes something clear for me. It is similar to James patterns in this post: http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.577
You may have a look to the shift-dublicate node - maybe it can help you - the difference to the progression node in arithmetic mode is that the input can take an array and shifts all values.

Have a nice day
Karsten
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.7 
Script select object by name, part of the puzzle.
http://moi3d.com/forum/index.php?webtag=MOI&msg=8259.2
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.8 In reply to 8663.6 
Thanks Karsten,
More study to be done after work.
- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
8663.9 In reply to 8663.5 
Hi Brian,

Thank you for drawing my attention to Truchet tiling.
I had not been aware my earlier post was an example of them.
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.577

I followed your links, and after some further research
I have made another example:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.731

Thank again for the inspiration
James

EDITED: 6 Nov 2017 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.10 In reply to 8663.9 
Thanks James.

I've fallen behind on all the node editor posts, due to too much work/family duties, and did not realize your prior activity:-)

Currently looking for Surf convert .js

- Brian

Maybe it is hiding in a macro?
OK, it is in a macro, but I still need isoCrvs.js :-)
OK, basicfunctions goes under libs subdirectory in extensions.
Also, should add to nodeeditor wiki docs to check out macros, if a node is red (missing).

OK, do Karsten's menu cleanup from here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8628.1
Then do the object2.js update from James.
Now Jame's Truchet.nod runs.
To fix Jame's RandomWrap7.nod, replace IsoCrvs programming rectangle with IsoCrvs rectangle from construct2 menu.
Delete the old IsoCrvs rectangle, and Save the menu-updated node to RandomWrap7.nod.
(should add to wiki)
(Note, IsoCrvs was in a test menu area, and Karsten moved it to construct2 menu.)

EDITED: 6 Nov 2017 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
8663.11 In reply to 8663.10 
Hi Brian,

I awoke to your tortured post of all the obstacles you
had to surmount in order to get my .nod files to run.

It was a worthwhile exercise to go through,
to update to NE mod with Karsten's rationalised menu,
however I'm sorry that I had not updated my earlier
post attachment. It is done now.

Are you a windows user? I only ask because Karsten
outlines a streamlined method of updating old .nod files
to work with his new NE mod. Found in his original post:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8628.1

James

EDITED: also updated attachments:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.585

EDITED: 6 Nov 2017 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.12 In reply to 8663.11 
Hi James,
Never owned, nor used a Mac, maybe someday.

Figuring out a little about the nodes was a great learning experience, and helped understanding forum talk.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.13 
I'm making slow progress on my 2D Truchet tile script, and had a question.

I would like to keep edges of a few 2D surfaces hidden, as they impact the display of the surfaces.
But even after hiding the edges, Copy un-hides the edges.

Is it possible to do a Copy, and keep the edges hidden?

- Brian

Found an answer:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8239.2

EDITED: 8 Nov 2017 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
8663.14 In reply to 8663.13 
Hi Brian

I have returned to original truchet pattern, but with a different approach.
To do this I have created a macro: ArcCenter. Hopefully this will be replaced
with an Arc node with centre, 3 points and tangent options in the near future.

Given that it is covering old ground, I have posted it here rather than
"playing with nodes" thread because I thought it may be a interest to you alone.

Have a great weekend
James

EDITED: 14 May 2019 by JFH

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.15 In reply to 8663.14 
Hi James,

I have not studied the node, but made some observations:
Formation takes about 30 seconds +/-.
Apply yields "exception occurred, line 528", and geometry vanishes when node editor window is closed."
But I was able to save the geometry to a .3dm at about 30 seconds+, while node was open.

Note: Slot of a basic math node is remove-able by right clicking on dot.
I need to learn meaning of wire colors...

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
8663.16 In reply to 8663.15 
Hi Brian,

<< Formation takes about 30 seconds +/-......exception occurred, line 528>>

That's odd...For me node generates result in 8 seconds, without error message.
I wonder if someone else might run this nod file and see if issue is repeated:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8663.14

<<and geometry vanishes when node editor window is closed>>

That's true for all (or most) nod files. You need to click "Apply" button to bake out geometry, otherwise it is a preview only.

<< I need to learn meaning of wire colors...>>
Greenish = numbers
Magenta = points
Yellow = objects

James

EDITED: 11 Nov 2017 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  James (JFH)
8663.17 In reply to 8663.15 
Hi Brian,

I have uploaded a revised version of file (attached)
that is reduced in file size by more than a third,
though it does not run any faster (still 8 seconds for me).

Please try, and if error persists, please take screen grab
of error message, so that I might ascertain in which node
the line 528 exception lies.

Thanks
James

EDITED: 14 May 2019 by JFH

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8663.18 In reply to 8663.17 
Hi James,
Time is still about 30 seconds, on my very good Windows computer, with lots of memory and SSD drive.
Apply causes exception, copy attached.
Possiby my nodeeditor setup is different than yours. (?)
File is ~4,144 kb.


- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 8663.19 deleted 14 May 2019 by JFH

Previous
Next
 From:  bemfarmer
8663.20 In reply to 8663.19 
Hi James
After nap, here is the exception.
Copied your extensions. Construct2, max_subdiv..., and basicFunctions slightly different.
Same 30 seconds, same exception upon apply.

- Brian



  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Mike (MGG942)
8663.21 In reply to 8663.19 
Hi, James,

I had some trouble running the nod, but after copying your extension folder, all works properly.
Takes about 7 seconds.

Mike.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 8663.22 deleted 12 Nov 2017 by JFH

Message 8663.23 deleted 12 May 2019 by JFH
 

Reply to All Reply to All

 

 
Show messages:  1-3  4-23  24-43  44-49