示例#1
0
void FaceInstance_pasteTexture(FaceInstance& faceInstance)
{
  faceInstance.getFace().SetTexdef(g_faceTextureClipboard.m_projection);
  faceInstance.getFace().SetShader(TextureBrowser_GetSelectedShader(g_TextureBrowser));
  faceInstance.getFace().SetFlags(g_faceTextureClipboard.m_flags);
  SceneChangeNotify();
}
示例#2
0
 void operator()(FaceInstance& face) const
 {
   if(shader_equal(face.getFace().getShader(), m_name))
   {
     face.setSelected(SelectionSystem::eFace, true);
   }
 }
示例#3
0
 void visit(FaceInstance& face) const
 {
   if(face.isSelected(SelectionSystem::eFace))
   {
     m_visitor.visit(face.getFace());
   }
 }
示例#4
0
	void operator() (FaceInstance& faceInstance) {
		// Get the winding
		const Winding& winding = faceInstance.getFace().getWinding();

		// For now, only windings with four edges are supported
		if (winding.size() == 4) {
			_faceInstances.push_back(&faceInstance);
		}
		else {
			_unsuitableWindings++;
		}
	}
示例#5
0
	void operator() (FaceInstance& faceInstance) {
		_vector.push_back(&faceInstance.getFace());
	}
示例#6
0
 void operator()(FaceInstance& faceInstance)
 {
   m_visitor.visit(faceInstance.getFace());
 }
示例#7
0
 void visit(FaceInstance& face) const
 {
   m_visitor.visit(face.getFace());
 }