vector2 primuvconvert(string filename, vector2 uv, int prim_num, int mode)
geometry
Строка, указывающая на файл геометрии (например, *.bgeo
) для чтения. При запуске внутри Houdini может быть ссылкой op:/путь/до/sop
.
uv
Curve coordinates to convert. The function returns the converted coordinates.
prim_num
The primitive number of the curve on which to convert the coordinates.
mode
One of the PRIMUV_space_TO_space
constants listed below. You can import the constants from $HFS/houdini/vex/include/math.h
.
REAL domain is based on the number of curve segments (0 to nSegments
). A segment can hold multiple control points based on the curve degree. UNIT
domain is the REAL domain normalized to fit in 0 to 1. UNITLEN
domain maps the curve based on its length but normalized (0..1). LEN
domain maps the curve based on its length (0..CurveLength
).
Constant name |
Int value |
---|---|
PRIMUV_REAL_TO_UNIT |
0 |
PRIMUV_REAL_TO_UNITLEN |
1 |
PRIMUV_REAL_TO_LEN |
2 |
PRIMUV_UNIT_TO_REAL |
3 |
PRIMUV_UNIT_TO_UNITLEN |
4 |
PRIMUV_UNIT_TO_LEN |
5 |
PRIMUV_UNITLEN_TO_REAL |
6 |
PRIMUV_UNITLEN_TO_UNIT |
7 |
PRIMUV_UNITLEN_TO_LEN |
8 |
PRIMUV_LEN_TO_REAL |
9 |
PRIMUV_LEN_TO_UNIT |
10 |
PRIMUV_LEN_TO_UNITLEN |
11 |
attrib |
|
prim |
|