Arclen (Solved)

   2403   1   0
User Avatar
Member
27 posts
Joined: June 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 - Nov. 14, 2019 10:34:46
User Avatar
Member
8041 posts
Joined: Sept. 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