Пример #1
0
// 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
// 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
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();
}