Response title
This is preview!
Shape2d shapeFrom( const PolyLine2f &polyline )
{
const std::vector<vec2> &points = polyline.getPoints();
Shape2d result;
auto it = points.begin();
result.moveTo( *it );
while ( ++it != points.end() ) {
result.lineTo( *it );
}
// TODO: Not sure this is necessary...
if ( polyline.isClosed() ) {
result.close();
}
return result;
}
mWallMeshRef = gl::VboMesh::create( geom::Extrude( shapeFrom( mOutline ), mFloorHeight, 1.0f ).caps( false ) >> geom::Translate( vec3( 0, 0, mFloorHeight / 2.0 ) ) );