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

Specify layers? #356

Open
bforl opened this issue Aug 19, 2023 · 2 comments
Open

Specify layers? #356

bforl opened this issue Aug 19, 2023 · 2 comments

Comments

@bforl
Copy link

bforl commented Aug 19, 2023

I was wondering if there was a way to explicitly specify the layer that a node should be on?

For example, given the following :

image

Can I instead, specify something like the following pseudo code?

SetLayer(0, [E, D, B A]);
SetLayer(1, [F, C]);
SetLayer(2, [G]);
SetLayer(3, [Z]);
SetLayer(4, [H]);

So I get something like this ?
image

Basically, what I want is to be able to say that [E, D, B A] should be on one layer, [F, C] on another layer, G another, Z another and H another. I hope that makes sense.

I've tried using PinNodesToSameLayer, but I cant get the result I want for G, Z and H

Thank you

@bforl
Copy link
Author

bforl commented Aug 26, 2023

Any help with this please?

@levnach
Copy link
Contributor

levnach commented Aug 26, 2023

I think you might use LayerConstraints.AddUpDownConstraint

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

2 participants