Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introspect for graphs which are not trees #419

Open
danrocag opened this issue Apr 21, 2021 · 0 comments
Open

introspect for graphs which are not trees #419

danrocag opened this issue Apr 21, 2021 · 0 comments

Comments

@danrocag
Copy link

danrocag commented Apr 21, 2021

introspect behaves in a somewhat weird way when given a graph which is not a tree. For example, if we apply it to the Sierpinski fractal from the tutorial:

function sierpinski(n)
    if n == 0
        compose(context(), polygon([(1,1), (0,1), (1/2, 0)]))
    else
        t = sierpinski(n - 1)
        compose(context(),
                (context(1/4,   0, 1/2, 1/2), t),
                (context(  0, 1/2, 1/2, 1/2), t),
                (context(1/2, 1/2, 1/2, 1/2), t))
    end
 #end

introspect(sierpinski(3))

Then the edges are correct, but many irrelevant copies of the vertices are shown. Can this be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant