コード例 #1
0
ファイル: glc_3drep.cpp プロジェクト: c3d/tao-object-loader
// Merge this 3Drep with another 3DRep
void GLC_3DRep::merge(const GLC_3DRep* pRep)
{
	// Get the number of geometry of pRep
	const int pRepSize= pRep->m_pGeomList->size();
	for (int i= 0; i < pRepSize; ++i)
	{
		addGeom(pRep->geomAt(i)->clone());
	}
}
コード例 #2
0
ファイル: rep3d.cpp プロジェクト: binhpt/vltest
// Merge this Rep3D with another Rep3D
void Rep3D::merge(const Rep3D* pRep)
{
	// Get the number of geometry of pRep
	const int pRepSize= pRep->m_pGeomList->size();
	for (int i= 0; i < pRepSize; ++i)
	{
		addGeom(pRep->geomAt(i)->deepCopy().get());
	}
}
コード例 #3
0
ファイル: glc_3drep.cpp プロジェクト: c3d/tao-object-loader
void GLC_3DRep::take(GLC_3DRep* pSource)
{
	// Get the number of geometry of pRep
	const int pRepSize= pSource->m_pGeomList->size();
	for (int i= 0; i < pRepSize; ++i)
	{
		addGeom(pSource->geomAt(i));
	}
	pSource->m_pGeomList->clear();
}