• VEX —— Attribute type metadata


            Houdini几何体属性有一些元数据metadata,用于指定属性中的数据是否表示某种变换transformation(如位置或旋转),及几何体本身被变换时是否或如何被修改;

    Houdini理解以下信息类型值:

    • “none”,无变换;
    • “point”,应用scale、rotation、及transformation;
    • “hpoint”,应用scale、rotation、及transformation,到vector4;
    • “vector”,应用scale、rotation、但无transformation;
    • “normal”,应用反向转置scale、应用rotation;
    • “color”,无变换;
    • “matrix”,应用scale、rotation、及transformation,到matrix;
    • “quaternion”,应用rotation;
    • “indexpair”,无变换;
    • “integer”,当点被平均时,不融合此值;
    • “integer-blend”,当点被平均时,融合此值;
    • “texturecoord”,无变换,当插值时保留接缝;此类型的属性将显示在UV视图菜单内;

    通用函数

            需指定属性组件级别为参数,对在不同属性类型上编写通用代码很有用;

    1. //设置几何体属性含义
    2. int setattribtypeinfo(int geohandle, string attribclass, string name, string typeinfo)
    1. //返回几何体属性的变换元数据
    2. string attribtypeinfo(geometry, string attribclass, string attribute_name)

    组件特定函数

            读取不同组件属性类型信息,如已知属性组件类型级别,可能比通用函数更方便更快;

    1. string pointattribtypeinfo(geometry, string attribute_name)
    2. string primattribtypeinfo(geometry, string attribute_name)
    3. string vertexattribtypeinfo(geometry, string attribute_name)
    4. string detailattribtypeinfo(geometry, string attribute_name)

    注:在不同wrangle内分别设置和获取类型信息;

     

  • 相关阅读:
    Python 算法高级篇:堆排序的优化与应用
    五分钟给你的 gRPC服务 加上 HTTP 接口
    树形DP
    数据结构原理与分析知识点
    冰蝎Java WebShell免杀生成 -- ByPassBehinder4J​
    win10修改截图快捷键
    【Python】第二课 python入门学习
    JavaWeb Session会话
    C语言中最难啃的硬骨头非这三个莫属
    哈佛大学教授:Web3如何重构被巨头破坏公平性的互联网
  • 原文地址:https://blog.csdn.net/NapoleonCoder/article/details/132902320