I'd gotten to the point of seeing faces as you described, but hadn't seen
the related pattern for edges. (Since I've been busy with surfaces.)

I do like the way the list of points for each face falls out under this
approach.

   face=. 0, |: #: i.4
   |:"_1 (i.!3) A. face
0 0 0
0 0 1
0 1 0
0 1 1

0 0 0
0 1 0
0 0 1
0 1 1

0 0 0
0 0 1
1 0 0
1 0 1

0 0 0
0 1 0
1 0 0
1 1 0

0 0 0
1 0 0
0 0 1
1 0 1

0 0 0
1 0 0
0 1 0
1 1 0


On Fri, Apr 2, 2010 at 10:59 AM, John Randall <[email protected]
> wrote:

> Raul Miller wrote:
> > I am looking for elegant ways of describing cubes in J.
>
> Here is an alternative system for cube coordinates.
>
> Label the points
>
>   #: i. 8
> 0 0 0
> 0 0 1
> 0 1 0
> 0 1 1
> 1 0 0
> 1 0 1
> 1 1 0
> 1 1 1
>
> Now a face is given by a set of points with 1 coordinate fixed, e.g.
>
> 0 0 0
> 0 0 1
> 1 0 0
> 1 0 1
>
> and an edge is given by a set of points with 2 coordinates fixed, e.g.
>
> 1 0 0
> 1 0 1
>
> This generalizes to higher dimensional cubes.
>
> Best wishes,
>
> John
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to