added faux edge sampling management
This commit is contained in:
parent
2edaa2853f
commit
a35120d9d9
|
@ -313,11 +313,11 @@ static void AllEdge(MetroMesh & m, VertexSampler &ps)
|
|||
// Each edge is subdivided in a number of pieces proprtional to its lenght
|
||||
// Sample are choosen without touching the vertices.
|
||||
|
||||
static void EdgeUniform(MetroMesh & m, VertexSampler &ps,int sampleNum)
|
||||
static void EdgeUniform(MetroMesh & m, VertexSampler &ps,int sampleNum, bool sampleFauxEdge=true)
|
||||
{
|
||||
typedef typename UpdateTopology<MetroMesh>::PEdge SimpleEdge;
|
||||
std::vector< SimpleEdge > Edges;
|
||||
UpdateTopology<MetroMesh>::FillUniqueEdgeVector(m,Edges);
|
||||
UpdateTopology<MetroMesh>::FillUniqueEdgeVector(m,Edges,sampleFauxEdge);
|
||||
// First loop compute total edge lenght;
|
||||
float edgeSum=0;
|
||||
typename std::vector< SimpleEdge >::iterator ei;
|
||||
|
|
Loading…
Reference in New Issue