• VEX —— Functions|Volume


    目录

    volume

    volumecubicsample

    volumecubicsamplev

    volumegradient

    volumeindex

    volumeindexactive

    volumeindexorigin

    volumeindextopos

    volumeindexv

    volumepostoindex

    volumeres

    volumesample

    volumesamplev

    volumesmoothsample

    volumesmoothsamplev

    volumevoxeldiameter


    volume

    float volume(vector pos, ...)

    volumecubicsample

    1. float volumecubicsample(geometry, int primnum, vector pos)
    2. float volumecubicsample(geometry, string volumename, vector pos)
    3. float volumecubicsample(geometry, int primnum, vector pos, vector &grad)
    4. float volumecubicsample(geometry, string volumename, vector pos, vector &grad)
    5. float volumecubicsample(geometry, int primnum, vector pos, vector &grad, matrix3 &hess)
    6. float volumecubicsample(geometry, string volumename, vector pos, vector &grad, matrix3 &hess)

    volumecubicsamplev

    1. vector volumecubicsamplev(geometry, int primnum, vector pos)
    2. vector volumecubicsamplev(geometry, string volumename, vector pos)
    3. vector volumecubicsamplev(geometry, int primnum, vector pos, matrix3 &grad)
    4. vector volumecubicsamplev(geometry, string volumename, vector pos, matrix3 &grad)
    5. vector volumecubicsamplev(geometry, int primnum, vector pos, matrix3 &grad, matrix3 &hessX, matrix3 &hessY, matrix3 &hessZ)
    6. vector volumecubicsamplev(geometry, string volumename, vector pos, matrix3 &grad, matrix3 &hessX, matrix3 &hessY, matrix3 &hessZ)

    volumegradient

    1. vector volumegradient(geometry, int primnum, vector pos)
    2. vector volumegradient(geometry, string volumename, vector pos)

    volumeindex

    1. float volumeindex(geometry, int primnum, vector voxel)
    2. float volumeindex(geometry, string volumename, vector voxel)

    volumeindexactive

    1. int volumeindexactive(geometry, int primnum, vector voxel)
    2. int volumeindexactive(geometry, string volumename, vector voxel)

    volumeindexorigin

    1. vector volumeindexorigin(geometry, int primnum)
    2. vector volumeindexorigin(geometry, string volumename)

    volumeindextopos

    1. vector volumeindextopos(geometry, int primnum, vector voxel)
    2. vector volumeindextopos(geometry, string volumename, vector voxel)
    1. //每体素位置
    2. vector res = volumeres(1,0);
    3. for(int ix=0; ix
    4. for(int iy=0; iy
    5. for(int iz=0; iz
    6. vector pos = volumeindextopos(1, 0, set(ix, iy, iz));
    7. addpoint(0, pos);
    8. }
    9. }
    10. }
    1. //类似上一示例
    2. @density; //不可省略
    3. int pt = addpoint(0, @P);
    4. setpointattrib(0, 'density', pt, @density);

    volumeindexv

    1. vector volumeindexv(geometry, int primnum, vector voxel)
    2. vector volumeindexv(geometry, string volumename, vector voxel)

    volumepostoindex

    1. vector volumepostoindex(geometry, int primnum, vector position)
    2. vector volumepostoindex(geometry, string volumename, vector position)

    volumeres

    1. vector volumeres(geometry, int primnum)
    2. vector volumeres(geometry, string volumename)

    volumesample

    1. float volumesample(geometry, int primnum, vector pos)
    2. float volumesample(geometry, string volumename, vector pos)

    volumesamplev

    1. vector volumesamplev(geometry, int primnum, vector pos)
    2. vector volumesamplev(geometry, string volumename, vector pos)

    volumesmoothsample

    1. float volumesmoothsample(geometry, int primnum, vector pos)
    2. float volumesmoothsample(geometry, string volumename, vector pos)
    3. float volumesmoothsample(geometry, int primnum, vector pos, vector &grad)
    4. float volumesmoothsample(geometry, string volumename, vector pos, vector &grad)
    5. float volumesmoothsample(geometry, int primnum, vector pos, vector &grad, matrix3 &hess)
    6. float volumesmoothsample(geometry, string volumename, vector pos, vector &grad, matrix3 &hess)

    volumesmoothsamplev

    1. vector volumesmoothsamplev(geometry, int primnum, vector pos)
    2. vector volumesmoothsamplev(geometry, string volumename, vector pos)
    3. vector volumesmoothsamplev(geometry, int primnum, vector pos, matrix3 &grad)
    4. vector volumesmoothsamplev(geometry, string volumename, vector pos, matrix3 &grad)
    5. vector volumesmoothsamplev(geometry, int primnum, vector pos, matrix3 &grad, matrix3 &hessX, matrix3 &hessY, matrix3 &hessZ)
    6. vector volumesmoothsamplev(geometry, string volumename, vector pos, matrix3 &grad, matrix3 &hessX, matrix3 &hessY, matrix3 &hessZ)

    volumevoxeldiameter

    1. float volumevoxeldiameter(geometry, int primnum)
    2. float volumevoxeldiameter(geometry, string primname)

  • 相关阅读:
    JavaScript 基础知识| 数据类型|类型转换
    spicy之evt接口定义文件
    CSAPP的Lab学习——AttackLab
    UVM实战——01基本概念_2 什么是UVM?
    Go 语言学习总结(10)—— Go 初学者必知的十个命令
    【毕业设计】基于单片机的测谎仪系统 -物联网 stm32 嵌入式
    面向海洋观监测传感网的移动终端位置隐私保护研究
    http协议浅分析
    英语——分享篇——每日200词——2401-2600
    【1】zabbix6.4监控windows电脑操作教程
  • 原文地址:https://blog.csdn.net/NapoleonCoder/article/details/133363226