Arclen (Solved)

   2384   1   0
User Avatar
Member
27 posts
Joined: 6月 2016
Offline
Hey,

just a quick one, how do you use the arclen expression for measuring perimeter of a curve?

arclen(surface_node, prim_num, ustart, ustop)

Cheers

(Solved)

@primd = `arclen(“/obj/curve_object1/curve1”, 0, 0, 1)`;
Edited by ludwigvon - 2019年11月14日 10:34:46
User Avatar
Member
8039 posts
Joined: 9月 2011
Offline
ludwigvon
Hey,

just a quick one, how do you use the arclen expression for measuring perimeter of a curve?

arclen(surface_node, prim_num, ustart, ustop)

Cheers

(Solved)

@primd = `arclen(“/obj/curve_object1/curve1”, 0, 0, 1)`;

Don't use hscript in a wrangle. Use arclen("/obj/curve_object1/curve1", 0, 0, 1)in a float parameter and reference the result:
f@perimeter = chf('arclen_parm');

Segregation allows the vex code to be cached and reused when the value changes.
  • Quick Links