I like to create a 45° mesh of the following shape: But I only get a filled block:
Code: Select all
Procedural::Shape s = Procedural::Shape()
.addPoint(0, 0)
.addPoint(3, 0)
.addPoint(3, 5)
.addPoint(1, 5)
.addPoint(1, 5+1)
.addPoint(4, 5+1)
.addPoint(4, -1)
.addPoint(0, -1);
Ogre::MeshPtr mp = Procedural::Lathe().setAngleEnd(Ogre::Degree(45)).setShapeToExtrude(&s).realizeMesh("special_part");
Ogre::Entity* m_pMeshZylinder = sceneMgr->createEntity("special_part");
