print cloth mesh vertices
This commit is contained in:
parent
41aa214a40
commit
cf92ff3339
@ -370,12 +370,12 @@ void b3Cloth::SolveC2()
|
||||
|
||||
void b3Cloth::Draw(b3Draw* draw) const
|
||||
{
|
||||
b3Color color1(1.0f, 0.0f, 0.0f);
|
||||
b3Color color2(0.0f, 1.0f, 0.0f);
|
||||
b3Color color3(0.0f, 0.0f, 1.0f);
|
||||
b3Color color4(0.0f, 0.0f, 0.0f);
|
||||
|
||||
const b3Mesh* m = m_mesh;
|
||||
|
||||
for (u32 i = 0; i < m->vertexCount; ++i)
|
||||
{
|
||||
draw->DrawPoint(m_ps[i].p, 2.0f, b3Color_green);
|
||||
}
|
||||
|
||||
for (u32 i = 0; i < m->triangleCount; ++i)
|
||||
{
|
||||
@ -394,7 +394,7 @@ void b3Cloth::Draw(b3Draw* draw) const
|
||||
|
||||
b3Vec3 n2 = -n1;
|
||||
|
||||
draw->DrawSolidTriangle(n1, v1, v2, v3, color3);
|
||||
draw->DrawSolidTriangle(n2, v1, v3, v2, color3);
|
||||
draw->DrawSolidTriangle(n1, v1, v2, v3, b3Color_blue);
|
||||
draw->DrawSolidTriangle(n2, v1, v3, v2, b3Color_blue);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user