weSetPathSegWidth
weSetPathSegWidth([g_pathSegId]float value ) => t / nil
Description
Automatically handles the sqrt(2) conversion for diagonal pathseg when the width is being changed. In addition, it also supports diagonal pathseg with custom extension and appropriately updates the values when the width is being changed.
Arguments
Value Returned
Examples
Consider that diag is a diagonal pathseg whose width == 0.3 and ortho is a diagonal pathseg whose width == 0.3. The following script shows the use of dbSetPathSegWidth.
\i weSetPathSegWidth(diag 0.5)
\t t
\p >
\i weGetPathSegWidth(diag)
\t 0.5
\p >
\i diag~>width
\t 0.71
\p >
Related Topics
Interactive and Assisted Routing Functions
Return to top