Group Abstract Group Abstract

Message Boards Message Boards

0
|
10.5K Views
|
4 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Is it OK to use NestList in this situation?

Posted 9 years ago
Attachments:
POSTED BY: Luis Ledesma
4 Replies
Posted 9 years ago

A very interesting solution to analyze and test, thanks for sharing it. Greetings Luis

POSTED BY: Luis Ledesma

Hi Luis,

you do can use Nest in this case (an interesting problem by the way!):

r = v : {{x1_, y1_, z1_}, {x2_, y2_, z2_}} :> Sequence @@ dtr[v];
cuboids = Nest[# /. r &, {{{0, 0, 0}, {128, 128, 128}}}, 6];
Graphics3D[Cuboid /@ cuboids]

First I was playing around with SubstitutionSystem but I could not make that work ...

Regards -- Henrik

POSTED BY: Henrik Schachner
Posted 9 years ago
POSTED BY: Luis Ledesma

Hi Luis, it seems to me that dtr is not listable? So uno generates a list of two items. I would try to make dtr map over a list of results. your uno result does not match your pattern in dtr because of this.

POSTED BY: l van Veen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard