本 Wiki 开启了 HTTPS。但由于同 IP 的 Blog 也开启了 HTTPS,因此本站必须要支持 SNI 的浏览器才能浏览。为了兼容一部分浏览器,本站保留了 HTTP 作为兼容。如果您的浏览器支持 SNI,请尽量通过 HTTPS 访问本站,谢谢!
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
vfx:houdini:vex:functions [2020/05/14 01:56] – [Getbbox_min / max] codinghare | vfx:houdini:vex:functions [2020/05/14 02:00] (当前版本) – 移除 codinghare | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ======VEX Concepts & Refs====== | ||
- | //Ver. 18.0// | ||
- | //VEX 的函数相关// | ||
- | ===== ===== | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ====MEASURE==== | ||
- | ===BoundingBox=== | ||
- | |||
- | ====NOISE AND RANDOMNESS==== | ||
- | ==Rand== | ||
- | <code vex> | ||
- | // | ||
- | // | ||
- | // | ||
- | // | ||
- | /* 使用 */ | ||
- | float rand(seed); // | ||
- | // | ||
- | vector pos = 1; | ||
- | float seed = 0; | ||
- | pos *= rand(seed); //random number are differernt in x,y,z | ||
- | pos *= float(rand(seed));// | ||
- | |||
- | </ | ||
- | ====VOLUME==== | ||
- | ===Volume=== | ||
- | ==Volumesample== | ||
- | <code vex> | ||
- | // | ||
- | // | ||
- | /* 使用 */ | ||
- | // | ||
- | //geometry 可以为 handle 类型,也可以为路径 | ||
- | volumesample(int input_number, | ||
- | volumesample(int input_number, | ||
- | </ | ||