print cloth mesh vertices
This commit is contained in:
@ -370,12 +370,12 @@ void b3Cloth::SolveC2()
|
|||||||
|
|
||||||
void b3Cloth::Draw(b3Draw* draw) const
|
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;
|
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)
|
for (u32 i = 0; i < m->triangleCount; ++i)
|
||||||
{
|
{
|
||||||
@ -394,7 +394,7 @@ void b3Cloth::Draw(b3Draw* draw) const
|
|||||||
|
|
||||||
b3Vec3 n2 = -n1;
|
b3Vec3 n2 = -n1;
|
||||||
|
|
||||||
draw->DrawSolidTriangle(n1, v1, v2, v3, color3);
|
draw->DrawSolidTriangle(n1, v1, v2, v3, b3Color_blue);
|
||||||
draw->DrawSolidTriangle(n2, v1, v3, v2, color3);
|
draw->DrawSolidTriangle(n2, v1, v3, v2, b3Color_blue);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user