Itoo Software Forum

Author Topic: XSplineMatID - how to include both Corners  (Read 826 times)

Dragan

  • Hero Member
  • *****
  • Posts: 879
XSplineMatID - how to include both Corners
« on: January 11, 2019, 02:56:42 PM »
Hi Rokas,

How to set expression to return MatID for both Corners (Before and After segment)?

Thank you.

Dragan
« Last Edit: January 11, 2019, 03:04:52 PM by Dragan »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: XSplineMatID - how to include both Corners
« Reply #1 on: January 11, 2019, 03:13:54 PM »
There are a lot of going on in Your scene. I am a bit lost in it.
Maybe there is a matter not only of expression but style/geometry itself.
Could You create a simpler scene with clearer expected final result.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 879
Re: XSplineMatID - how to include both Corners
« Reply #2 on: January 11, 2019, 03:31:20 PM »
Sure

I need  cylinder on both corners on spline ID3

tnx


Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: XSplineMatID - how to include both Corners
« Reply #3 on: January 11, 2019, 03:39:40 PM »
from Your situation it seems like it has to be just number "3".
and something else has to be done to prevent it's effect in other places.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 879
Re: XSplineMatID - how to include both Corners
« Reply #4 on: January 11, 2019, 07:51:42 PM »
Since this is just a part of more complex generator it will be great to have expression Attribute that combine XSplineMatID and XSplineNextMadID so both corner vertex can be included/excluded.
Thank You for reply.

Dragan
« Last Edit: January 12, 2019, 10:49:40 PM by Dragan »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: XSplineMatID - how to include both Corners
« Reply #5 on: January 14, 2019, 09:47:03 AM »
Is this what You are after:



Quote
return if(XSplineMatID==3 | XSplineNextMatID==3,3,1);
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 879
Re: XSplineMatID - how to include both Corners
« Reply #6 on: January 14, 2019, 12:14:12 PM »
Yes Rokas, thank you, but that solution force me to track all potential ID separation. Imagine complex Spline with 35+ spline IDs.
If I go with logic that certain spline ID will carry some Geometry that  includes/excludes both border corners, expression Attribute that include/exclude those corners will be very helpful (no need for If expression...).
Hope you understand and it make any sense.

Best regards
Dragan

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: XSplineMatID - how to include both Corners
« Reply #7 on: January 14, 2019, 02:30:58 PM »
Isn't that what You have asked in the first post?
I am a bit lost.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 879
Re: XSplineMatID - how to include both Corners
« Reply #8 on: January 14, 2019, 03:31:22 PM »
Yes, Rokas

Solution is great, I`m talking about adding a new Expression Attribute as ER.

Sorry for misunderstanding  ;)