Hi,
Attached code snippet.
private void MostrarRepresentacionNudos(Model3DGroup modelg, Vector3D _v1, Vector3D _v2)
{
modelg.Children.Remove(textcreate);
Brush colorTexto = colortextosProp;
if (nudoList != null)
{
for (int i = 0; i < nudoList.Count; i++)
{
clodo = new clNodos();
clodo.pt = nudoList[i];
clodo.name = "N" + i;
cnodo.Add(clodo);
}
for (int i = 0; i < cnodo.Count; i++)
{
clNodos cln = new clNodos();
double x = cnodo[i].pt.X;
double y = cnodo[i].pt.Y;
double z = cnodo[i].pt.Z;
textLong = TextCreator.CreateTextLabelModel3D(cnodo[i].name, colorTexto,
true, .20, new Point3D(x, y + 0.20, z), _v1, _v2);
modelg.Children.Add(textLong);
}
}
if (nList != null)
{
for (int i = 0; i < nList.Count; i++)
{
wlodo = new Node();
wlodo.Location = nList[i].Location;
wlodo.Label = "N" + (nudoList.Count + i);
Wnodo.Add(wlodo);
}
for (int i = 0; i < Wnodo.Count; i++)
{
Node cln = new Node();
double x = Wnodo[i].Location.X;
double y = Wnodo[i].Location.Y;
double z = Wnodo[i].Location.Z;
Draw3DNudos(MainModel3Dgroup, new Point3D(x, y, z), 0.025, colorMuros);
textLong = TextCreator.CreateTextLabelModel3D(Wnodo[i].Label, colorTexto,
true, .20, new Point3D(x, y +.15, z), _v1, _v2);
modelg.Children.Add(textLong);
}
}
}