static void _pt_write (PointAccum *pt, FILE *file)
{
  fprintf (file, "i=%d v=", pt->id);
  vsg_vector3d_write (&pt->vector, file);
  fprintf (file, " d=%e ", pt->density);
  vsg_vector3d_write (&pt->field, file);
  fprintf (file, "\n");
}
Пример #2
0
static void _pt_write (PointAccum *pt, FileAndIndent *fai)
{
  fprintf (fai->file, "%si=%lu v=", fai->indent, pt->id);
  vsg_vector3d_write (&pt->vector, fai->file);
  fprintf (fai->file, " d=%e ", pt->density);
  vsg_vector3d_write (&pt->field, fai->file);
  fprintf (fai->file, "\n");
}
static void _traverse_fg_write (VsgPRTree3dNodeInfo *node_info, FILE *file)
{
  fprintf (file, "node c=");
  vsg_vector3d_write (&node_info->center, file);
  fprintf (file, " dev=");

  if (!VSG_PRTREE3D_NODE_INFO_IS_REMOTE (node_info))
    {
      aran_development3d_write ((AranDevelopment3d *) node_info->user_data,
                                file);
      fprintf (file, "\n");

      g_slist_foreach (node_info->point_list, (GFunc) _pt_write, file);
    }

  fprintf (file, "\n");
}
Пример #4
0
static void write (VsgVector3d *pt, FILE *file)
{
  vsg_vector3d_write (pt, file);
  fprintf (file, "\n");
}