Example #1
0
void BSPMakeBrep(BSPNode *r, std::vector<Face> && faces)
{
	GenerateFaces(r);
	FaceSplitifyEdges(r);
	for(auto & f : faces) 
		ExtractMat(r,f);
}
Example #2
0
	Cube::Cube(const glm::vec3& center,
		const std::vector<glm::vec3>& bottomTopFacesVectorsCCW)
		: mCenter(center)
		, mFaces()
		, mBottomTopFacesVectorsCCW(bottomTopFacesVectorsCCW)
	{
		GenerateFaces();
		UpdateBoundingRadiuses();
	}
Example #3
0
	void Cube::SetCenter(const glm::vec3& newCenter)
	{
		mCenter = newCenter;
		mFaces.clear();
		GenerateFaces();
	}