Hexagonal lattice

Post questions on how to use or achieve an effect in Inkscape.
SlonoInquisitor
Posts: 3
Joined: Mon Jan 07, 2008 6:25 pm

Hexagonal lattice

Postby SlonoInquisitor » Mon Jan 07, 2008 6:39 pm

How to create a hexagonal lattice (network) such that its nodes can be freely moved, i.e. the lattice could be arbitrarily deformed? My failed attempts to create one reduce to:

1. Create a pattern from hexagons. However, the nodes can not be moved, even after transforming the pattern to path (via object to path).
2. Create two hexagons, align them, transform each into the path, combine the paths. However, I failed to join the nodes at ajacent vertices. Btw, is it possible at all to join the non-end nodes?

Is there a direct way to create a hexagonal lattice?

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Hexagonal lattice

Postby prkos » Mon Jan 07, 2008 9:35 pm

just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
kelan
Posts: 178
Joined: Thu Sep 06, 2007 12:55 am
Location: Unicorn of Open Source
Contact:

Re: Hexagonal lattice

Postby kelan » Tue Jan 08, 2008 3:34 am

The best you can do is to make hexagons that overlap on an edge (for example, by using Tile Clones, as prkos points out); it won't actually be a lattice. The reason is that a node can only join two lines, no more. To be a true hexagonal lattice, you would need nodes that join three lines.

To answer your other question, no it isn't possible to join non-end nodes.

SlonoInquisitor
Posts: 3
Joined: Mon Jan 07, 2008 6:25 pm

Re: Hexagonal lattice

Postby SlonoInquisitor » Tue Jan 08, 2008 4:12 am

Dear prkos and kelan, thank you very much. It is a pity that such a simple operation as drawing a lattice, which is transparent to do in corel (iirc), can not be realized in principle with Inkscape. If I understand correctly, the reason is exactly the impossibility to join more than 3 nodes. I wonder whether this is an internal restriction of the svg format that can not be circumvented or simply the shortage of Inkscape that will be possibly fixed someday.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Hexagonal lattice

Postby sas » Tue Jan 08, 2008 5:46 am

SlonoInquisitor wrote:If I understand correctly, the reason is exactly the impossibility to join more than 3 nodes.


It's the impossibility of having more than 2 lines meet at a node.

SlonoInquisitor wrote:I wonder whether this is an internal restriction of the svg format that can not be circumvented or simply the shortage of Inkscape that will be possibly fixed someday.


It's a restriction of the SVG format. But that doesn't necessarily mean that it couldn't be circumvented in some future version of Inkscape: Inkscape could write SVG code to give the correct appearance, and add extra information in the inkspace namespace to tell Inkscape how it should be handled (much like it currently does for star objects, only more complicated).

SlonoInquisitor
Posts: 3
Joined: Mon Jan 07, 2008 6:25 pm

Re: Hexagonal lattice

Postby SlonoInquisitor » Tue Jan 08, 2008 6:00 am

Thank you! So let us wait when this restriction of the SVG format will be circumvented by Inkscape, perhaps via some plug-in.

Twisp

Re: Hexagonal lattice

Postby Twisp » Tue Feb 05, 2008 12:25 am

Creating tile
1) Create a hexagon aligned to the base line - polygon tool - :tool_star:
2) Edit > Clone > Create Tiled Clones
3) Symmetry P1: simple translation
4) Shift : Per column Shift X: -25, Shift Y: -50
5) Width, height 500 x 500 (... as you like)

6) Select all (ctrl + A)
7) Edit > Clone > Unlink Colne (Shift + Alt + D)
8) Select all (ctrl + A)
9) Path > Object to Path

10) You can select nodes to be displaced ... :tool_node: (F2)

Good luck ;-)


Return to “Help with using Inkscape”