示例#1
0
文件: Sub.java 项目: AbFab3D/AbFab3D
  /**
   * @noRefGuide calculates values of all data sources and return maximal value can be used to make
   *     union of few shapes
   */
  public int getBaseValue(Vec pnt, Vec data) {

    dataSource2.getDataValue(new Vec(pnt), data);
    double d2 = data.v[0];

    dataSource1.getDataValue(pnt, data);

    data.v[0] -= d2;

    return ResultCodes.RESULT_OK;
  }
示例#2
0
文件: Mask.java 项目: AbFab3D/AbFab3D
  /**
   * @noRefGuide calculates values of all data sources and return maximal value can be used to make
   *     union of few shapes
   */
  public int getBaseValue(Vec pnt, Vec data) {

    m_dataSource.getDataValue(new Vec(pnt), data);

    data.v[0] = step10(data.v[0], m_threshold, m_thickness2);

    return ResultCodes.RESULT_OK;
  }