本文整理了Java中com.jme3.scene.Mesh.deepClone()
方法的一些代码示例,展示了Mesh.deepClone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mesh.deepClone()
方法的具体详情如下:
包路径:com.jme3.scene.Mesh
类名称:Mesh
方法名:deepClone
[英]Creates a deep clone of this mesh. The VertexBuffer and the data inside them is cloned.
[中]创建此网格的深层克隆。VertexBuffer和其中的数据被克隆。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
public Spatial oldDeepClone() {
Geometry geomClone = clone(true);
geomClone.mesh = mesh.deepClone();
return geomClone;
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
/**
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public void cloneFields( Cloner cloner, Object original ) {
Mesh originalMesh = this.mesh;
super.cloneFields(cloner, original);
// BitmapTextPage always requires a new mesh or different
// BitmapText instances will clobber one another.
// But if we were already deep cloning meshes then we don't
// want to do it again... so we'll check first.
if( this.mesh == originalMesh ) {
this.mesh = mesh.deepClone();
}
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
public Spatial oldDeepClone() {
Geometry geomClone = clone(true);
geomClone.mesh = mesh.deepClone();
return geomClone;
}
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Creates a deep clone of the geometry,
* this creates an identical copy of the mesh
* with the vertexbuffer data duplicated.
*/
@Override
public Spatial deepClone() {
Geometry geomClone = clone(true);
geomClone.mesh = mesh.deepClone();
return geomClone;
}
代码示例来源:origin: info.projectkyoto/mms-engine
@Override
public BitmapTextPage clone() {
BitmapTextPage clone = (BitmapTextPage) super.clone();
clone.mesh = mesh.deepClone();
return clone;
}
代码示例来源:origin: org.jmonkeyengine/jme3-core
/**
* Called internally by com.jme3.util.clone.Cloner. Do not call directly.
*/
@Override
public void cloneFields( Cloner cloner, Object original ) {
Mesh originalMesh = this.mesh;
super.cloneFields(cloner, original);
// BitmapTextPage always requires a new mesh or different
// BitmapText instances will clobber one another.
// But if we were already deep cloning meshes then we don't
// want to do it again... so we'll check first.
if( this.mesh == originalMesh ) {
this.mesh = mesh.deepClone();
}
}
代码示例来源:origin: jMonkeyEngine-Contributions/Lemur
@Override
public MBox clone() {
MBox result = (MBox)super.deepClone();
result.extents = extents.clone();
result.slices = slices.clone();
return result;
}
代码示例来源:origin: jMonkeyEngine-Contributions/Lemur
@Override
public TbtQuad clone() {
TbtQuad result = (TbtQuad)super.deepClone();
result.size = size.clone();
result.imageSize = imageSize.clone();
result.horzFolds = horzFolds.clone();
result.vertFolds = vertFolds.clone();
result.horzTexCoords = horzTexCoords.clone();
result.vertTexCoords = vertTexCoords.clone();
return result;
}
内容来源于网络,如有侵权,请联系作者删除!