com.jme3.scene.Geometry.setBoundRefresh()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中com.jme3.scene.Geometry.setBoundRefresh()方法的一些代码示例,展示了Geometry.setBoundRefresh()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.setBoundRefresh()方法的具体详情如下:
包路径:com.jme3.scene.Geometry
类名称:Geometry
方法名:setBoundRefresh

Geometry.setBoundRefresh介绍

暂无

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

/**
 * Updates the bounding volume of the mesh. Should be called when the
 * mesh has been modified.
 */
public void updateModelBound() {
  mesh.updateBound();
  setBoundRefresh();
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

/**
 * Sets the model bound to use for this geometry.
 * This alters the bound used on the mesh as well via
 * {@link Mesh#setBound(com.jme3.bounding.BoundingVolume) } and
 * forces the world bounding volume to be recomputed.
 *
 * @param modelBound The model bound to set
 */
@Override
public void setModelBound(BoundingVolume modelBound) {
  this.worldBound = null;
  mesh.setBound(modelBound);
  setBoundRefresh();
  // NOTE: Calling updateModelBound() would cause the mesh
  // to recompute the bound based on the geometry thus making
  // this call useless!
  //updateModelBound();
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

/**
 * Sets the mesh to use for this geometry when rendering.
 *
 * @param mesh the mesh to use for this geometry
 *
 * @throws IllegalArgumentException If mesh is null
 */
public void setMesh(Mesh mesh) {
  if (mesh == null) {
    throw new IllegalArgumentException();
  }
  this.mesh = mesh;
  setBoundRefresh();
  if (isGrouped()) {
    groupNode.onMeshChange(this);
  }
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Updates the bounding volume of the mesh. Should be called when the
 * mesh has been modified.
 */
public void updateModelBound() {
  mesh.updateBound();
  setBoundRefresh();
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Updates the bounding volume of the mesh. Should be called when the
 * mesh has been modified.
 */
public void updateModelBound() {
  mesh.updateBound();
  setBoundRefresh();
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Sets the mesh to use for this geometry when rendering.
 * 
 * @param mesh the mesh to use for this geometry
 * 
 * @throws IllegalArgumentException If mesh is null
 */
public void setMesh(Mesh mesh) {
  if (mesh == null) {
    throw new IllegalArgumentException();
  }
  if (isBatched()) {
    throw new UnsupportedOperationException("Cannot set the mesh of a batched geometry");
  }
  this.mesh = mesh;
  setBoundRefresh();
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Sets the model bound to use for this geometry.
 * This alters the bound used on the mesh as well via
 * {@link Mesh#setBound(com.jme3.bounding.BoundingVolume) } and
 * forces the world bounding volume to be recomputed.
 *
 * @param modelBound The model bound to set
 */
@Override
public void setModelBound(BoundingVolume modelBound) {
  this.worldBound = null;
  mesh.setBound(modelBound);
  setBoundRefresh();
  // NOTE: Calling updateModelBound() would cause the mesh
  // to recompute the bound based on the geometry thus making
  // this call useless!
  //updateModelBound();
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Sets the model bound to use for this geometry.
 * This alters the bound used on the mesh as well via
 * {@link Mesh#setBound(com.jme3.bounding.BoundingVolume) } and
 * forces the world bounding volume to be recomputed.
 * 
 * @param modelBound The model bound to set
 */
@Override
public void setModelBound(BoundingVolume modelBound) {
  this.worldBound = null;
  mesh.setBound(modelBound);
  setBoundRefresh();
  // NOTE: Calling updateModelBound() would cause the mesh
  // to recompute the bound based on the geometry thus making
  // this call useless!
  //updateModelBound();
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Sets the mesh to use for this geometry when rendering.
 *
 * @param mesh the mesh to use for this geometry
 *
 * @throws IllegalArgumentException If mesh is null
 */
public void setMesh(Mesh mesh) {
  if (mesh == null) {
    throw new IllegalArgumentException();
  }
  this.mesh = mesh;
  setBoundRefresh();
  if (isGrouped()) {
    groupNode.onMeshChange(this);
  }
}

相关文章