Scott Murman | 2 Jan 21:19 2011
Picon

convert pgf to g-code

has anyone played around w/ converting pgf/tikz commands to output g-code instead of tex, pdf, etc?   for
many 2d cnc operations this would be very useful.

-SM-


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Alexandru Dumitrache | 3 Jan 07:10 2011
Picon

Re: convert pgf to g-code

With pgf... no, but I did play with creating g-code from other kind of
stuff (like depth maps).

For straight lines it should be pretty straightforward. For arcs, there's
a bit of math involved. For other kind of curves... I think the easiest
way is to split them into many small segments and join them with G64
(corner rounding).

> has anyone played around w/ converting pgf/tikz commands to output g-code
> instead of tex, pdf, etc?   for many 2d cnc operations this would be very
> useful.
>
> -SM-
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
(Continue reading)

Scott Murman | 3 Jan 18:42 2011
Picon

Re: convert pgf to g-code

using pgf source is preferred to get the graphical feedback and documentation w/o a commercial
windows-based cad package.  most ops are simple straight cuts, circular arcs, etc. so a dictionary lookup
is straightfoward.   what you really want is the compiler though, so you can build hierarchical
structures, loops, etc.   does pgf output an intermediate machine-like code, or is this simply the tex
code?  my impression has been that pgf is more than a tex pre-processor, so it should be possible to bind
another output, but perhaps i'm mistaken.   

-SM-

On Jan 2, 2011, at 10:10 PM, Alexandru Dumitrache wrote:

> With pgf... no, but I did play with creating g-code from other kind of
> stuff (like depth maps).
> 
> For straight lines it should be pretty straightforward. For arcs, there's
> a bit of math involved. For other kind of curves... I think the easiest
> way is to split them into many small segments and join them with G64
> (corner rounding).
> 
>> has anyone played around w/ converting pgf/tikz commands to output g-code
>> instead of tex, pdf, etc?   for many 2d cnc operations this would be very
>> useful.
>> 
>> -SM-
>> 
>> 
>> ------------------------------------------------------------------------------
>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
>> to consolidate database storage, standardize their database environment,
>> and,
(Continue reading)

Marc van Dongen | 3 Jan 19:09 2011
Picon

Bees in tikz Space

Dear all, 

The code below creates a nice bee picture with tikz. It was created 
by a student of mine as part of an assignment. The student's name is 
Alan Forde. Happy tikz-ing.

Regards,

Marc van Dongen

\documentclass[12pt]{article}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tikz}

\title{BEELINE\linebreak\linebreak \linebreak A Mathematical BEE }
\author{Thomas Alan Forde \thanks{Thanks to the Mathematicians}}
\date{March 2010}

\begin{document}

  \tikzstyle{bodyfill}=[line width=.2pt, color=yellow!50, fill=yellow!50]
  \tikzstyle{headline}=[line width=2pt, color=black!200,fill=yellow!50]
  \tikzstyle{bodyline}=[line width=3pt, color=black!200,fill=yellow!50]
  \tikzstyle{eyeline}=[line width=2pt, fill=white]
  \tikzstyle{outline}=[line width=2pt]
  \tikzstyle{wingline}=[line width=2pt, fill=yellow!20]
  \tikzstyle{eyeball1}=[line width=.1pt, fill=black]
  \tikzstyle{eyeball2}=[line width=.1pt, color=white, fill=white]
  \tikzstyle{leg}=[line width=2pt]
  \tikzstyle{shadow}=[line width=.1pt, color=gray!15, fill=gray!15]
(Continue reading)

Clinton Roy | 4 Jan 01:33 2011
Picon

conditionals on node existence

Hey folks,

I would like to be able to conditionally add a node based on whether
another node already exists.

I'm building a multi-day time table, I set up a table of invisible
nodes named with the venue and timeslot:

     A      B     C
1   A-1  B-1  C-1
2   A-2  B-2  C-2
3   A-3  B-3  C-3

Then I use the fit library to overlay the actual sessions over the top
of the table. This method works really
well as it easily allows me to have sessions that span venues (e.g.
lunch) or sessions that span multiple slots,
e.g. a half day tutorial.

Due to space constraints, I can't display the entire timetable on one
page, and have to split it up. I'd like to able
to display just a portion of the timetable, loop over each session,
and only attempt to fit the session if the given
node exists, but I can't figure how to do that at all. I've tried
tracing through some simple node names, but
very quickly get lost, and can't figure out what is actually defined
to the node name.

Thanks for any pointers,
--

-- 
(Continue reading)

Alexandru Dumitrache | 4 Jan 08:35 2011
Picon

Re: convert pgf to g-code

You can go to the system layer (if I remember well) and you'll find the
low-level paths, after TikZ executes its loops and all the high level
processing. From there you can extract the points and output the G-code.

Probably the most elegant method is to create a new output backend (like
the PDF, PS, SVG). It's not easy to do, but with the help of someone who
knows pgf/tikz internals, it is possible.

A few months ago I did some experiments with overriding tikz <at> finish and
passing the points to a lua script (in lualatex), with partial success.
Some code:

\def\tikz <at> finish{\message{^^Jtest^^J}
    \pgfsyssoftpath <at> getcurrentpath{\thePath}
    \directlua{intercept([[\meaning\thePath]], [[\meaning\tikz <at> mode]])}
    \orig <at> tikz <at> finish}

> using pgf source is preferred to get the graphical feedback and
> documentation w/o a commercial windows-based cad package.  most ops are
> simple straight cuts, circular arcs, etc. so a dictionary lookup is
> straightfoward.   what you really want is the compiler though, so you can
> build hierarchical structures, loops, etc.   does pgf output an
> intermediate machine-like code, or is this simply the tex code?  my
> impression has been that pgf is more than a tex pre-processor, so it
> should be possible to bind another output, but perhaps i'm mistaken.
>
> -SM-
>
> On Jan 2, 2011, at 10:10 PM, Alexandru Dumitrache wrote:
>
(Continue reading)

Mark Wibrow | 4 Jan 11:20 2011
Picon

Re: conditionals on node existence

Hi,

Basically, for a node named `foo' you need to test for the existence of 
\pgf <at> sh <at> ns <at> foo. Two ways are shown below:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\makeatletter
\def\pgfifnamednodeexists#1#2#3{%
   \edef\pgf <at> temp{pgf <at> sh <at> ns <at> #1}%
   \expandafter\pgfutil <at> ifundefined\expandafter{\pgf <at> temp}{#3}{#2}}
\makeatother

\tikz\node (foo) {FOO};

\foreach \nodename in {foo,bah}{
   \pgfifnamednodeexists{\nodename}{Node `\nodename' exists}{Node 
`\nodename' does not exist}
   \par
}

\newif\iftikznodeexists
\def\tikztestnodeexists#1{\pgfifnamednodeexists{#1}{\tikznodeexiststrue}{\tikznodeexistsfalse}}

\foreach \nodename in {foo,bah}{
   \tikztestnodeexists{\nodename}
   Node `\nodename'
   \iftikznodeexists
     exists
(Continue reading)

Dan | 4 Jan 11:26 2011
Picon

Designing edges with shape

Hello PGF and TikZ users,

I am currently working on networks. I have  edges of different nature and I would like to draw them with shapes inside the line between two nodes. 

An algorithm to draw between two nodes could be: from first node, draw a small line, draw the shape then draw a line to the second node.

(nodeA) ----[shape]----(nodeB).

In ASCII art, it should be something like that:
(A) ------<>------(B)


In the best case, the shape would be in the middle between the two nodes.


Is it possible to  create a tikzset that will compute this kind of edge.

Thanks for everything.


Best Regards,
Dan

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Philipp A. | 4 Jan 23:46 2011
Picon

Phylogenetic tree (Tree where all leaves are levelled)

hi list,

i’m actually a tikz user for quite a time, but googling brought me the answer all the time. now i have a quenstion it doesn’t know:

how do i create a tree, where all leaves are on one level? normally leaves are on the level they end on, but i need the following:

  1. a tree like this, where there is a last-level distance and a other-levels distance. every branching resulting in only leaves should be level with each other such branchings (so the second-to-last level should be on the same height). every other level distance should be preferably equal to the other-levels distance and maximally the distance neccessary to fullfill the other constraints.
  2. if that’s not possible, then i want the tree to look like this, where every branch ending in a leaf simply extends the minimum distance neccessary so that the furthest level still has a minimum distance.
of course i want to KISS and keep it DRY, so manually managing the level distances is out of question and giving every leaf a style would ok, but not what i was looking for.

finally: i know i sometimes sound demanding, but this mail is meant to be simply a nice request. if somebody feels inclined to help me or a solution springs into his/her mind, please do so, but don’t feel like i claimed this :)

greetings,
philipp
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Christian Mandel | 5 Jan 15:20 2011
Picon
Picon

pgfpages rotation bug still there

Hello all,

I use pgfpages frequently on many computers and I always stumble upon
this bug. It's in the bug tracker (ID: 1911195) and was also discussed
on the list (topic ``pgfpages and rotation'' from 2009-11-25) where even
a fix is mentioned (which I manually have to ``install'' on every
computer I work). The bug is present in the latest release 2.10 and IMHO
also in the cvs. Is there any chance to get rid of this bug or do I
overlook something?

Regards, Chris

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl

Gmane