Itoo Software Forum

Author Topic: Angle controlled bevel corner checker  (Read 1245 times)

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Angle controlled bevel corner checker
« on: January 14, 2019, 11:36:39 AM »
Hi,

I would like to control bevel corner via spline angle eg. if i have vertex angle less than 179 degrees  bevel corner is off and if angle is greater than 179 degrees  bevel corner is on.

Thank for any ideas

Best regards,
Michal

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Angle controlled bevel corner checker
« Reply #1 on: January 14, 2019, 03:22:19 PM »
Unfortunately this is not possible.

For this You need to use Arithmetic operator:
Quote
return if(radToDeg(XVertexAngle)>179,1,0);

But this is not supported.
Rokas

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Angle controlled bevel corner checker
« Reply #2 on: January 14, 2019, 03:57:49 PM »
Quote
Unfortunately this is not possible

I was affrait to hear that :)
Hmm I am wandering to do it in different way - create conditional material override for angle and create two generators with different bevel setting.

Best,
Michal

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Angle controlled bevel corner checker
« Reply #3 on: January 14, 2019, 04:03:01 PM »
seems like that could work. Good luck.
Rokas

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Angle controlled bevel corner checker
« Reply #4 on: January 14, 2019, 04:47:21 PM »
i think much more simple will be create empty segment with paddings in main generator and add second generator contains only desired corner which fit in place of "container" from main style.

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Angle controlled bevel corner checker
« Reply #5 on: January 15, 2019, 04:10:32 AM »
i did it in third way :D
whole array has bevel corner mode but i add extra empty piece of geometry ( compose operator )  for corners which should be without bevel

thanks for help
Michal