• Home
  • Raw
  • Download

Lines Matching refs:fp

594     FILE* fp;
599 fp = fopen (fname, "wt");
600 if (fp == NULL)
603 fprintf (fp, "#VRML V2.0 utf8\n");
606 fprintf (fp, "DEF CamTest Group {\n");
607 fprintf (fp, "\tchildren [\n");
608 fprintf (fp, "\t\tDEF Cameras Group {\n");
609 fprintf (fp, "\t\t\tchildren [\n");
610 fprintf (fp, "\t\t\t\tDEF DefaultView Viewpoint {\n");
611 fprintf (fp, "\t\t\t\t\tposition 0 0 340\n");
612 fprintf (fp, "\t\t\t\t\torientation 0 0 1 0\n");
613 fprintf (fp, "\t\t\t\t\tdescription \"default view\"\n");
614 fprintf (fp, "\t\t\t\t}\n");
615 fprintf (fp, "\t\t\t]\n");
616 fprintf (fp, "\t\t},\n");
617 fprintf (fp, "\t]\n");
618 fprintf (fp, "}\n");
621 fprintf (fp, "Background {\n");
622 fprintf (fp, "\tskyColor [\n");
623 fprintf (fp, "\t\t.5 .5 .5\n");
624 fprintf (fp, "\t]\n");
625 fprintf (fp, "}\n");
628 fprintf (fp, "Transform {\n");
629 fprintf (fp, "\tscale .3 .3 .3\n");
630 fprintf (fp, "\tchildren [\n");
633 fprintf (fp, "\t\tShape {\n");
634 fprintf (fp, "\t\t\tappearance Appearance {\n");
635 fprintf (fp, "\t\t\t\tmaterial Material {\n");
636 fprintf (fp, "\t\t\t\t\tdiffuseColor 0 0.8 0\n");
637 fprintf (fp, "\t\t\t\t\temissiveColor 1.0 1.0 1.0\n");
638 fprintf (fp, "\t\t\t\t\tshininess 0.8\n");
639 fprintf (fp, "\t\t\t\t}\n");
640 fprintf (fp, "\t\t\t}\n");
641 fprintf (fp, "\t\t\tgeometry IndexedLineSet {\n");
642 fprintf (fp, "\t\t\t\tcoord Coordinate {\n");
643 fprintf (fp, "\t\t\t\t\tpoint [\n");
644 fprintf (fp, "\t\t\t\t\t0.0 0.0 0.0,\n");
645 fprintf (fp, "\t\t\t\t\t%f 0.0 0.0,\n", 255.0);
646 fprintf (fp, "\t\t\t\t\t0.0 %f 0.0,\n", 255.0);
647 fprintf (fp, "\t\t\t\t\t0.0 0.0 %f]\n", 255.0);
648 fprintf (fp, "\t\t\t\t}\n");
649 fprintf (fp, "\t\t\t\tcoordIndex [\n");
650 fprintf (fp, "\t\t\t\t\t0, 1, -1\n");
651 fprintf (fp, "\t\t\t\t\t0, 2, -1\n");
652 fprintf (fp, "\t\t\t\t\t0, 3, -1]\n");
653 fprintf (fp, "\t\t\t}\n");
654 fprintf (fp, "\t\t}\n");
657 fprintf (fp, "\t\tShape {\n");
658 fprintf (fp, "\t\t\tappearance Appearance {\n");
659 fprintf (fp, "\t\t\t\tmaterial Material {\n");
660 fprintf (fp, "\t\t\t\t\tdiffuseColor 0 0.8 0\n");
661 fprintf (fp, "\t\t\t\t\temissiveColor 1 1 1\n");
662 fprintf (fp, "\t\t\t\t\tshininess 0.8\n");
663 fprintf (fp, "\t\t\t\t}\n");
664 fprintf (fp, "\t\t\t}\n");
665 fprintf (fp, "\t\t\tgeometry PointSet {\n");
668 fprintf (fp, "\t\t\t\tcoord Coordinate {\n");
669 fprintf (fp, "\t\t\t\t\tpoint [\n");
680 fprintf (fp, "\t\t\t\t\t%g %g %g", v.n[0]+50, v.n[1], v.n[2]);
683 fprintf (fp, "]\n");
685 fprintf (fp, ",\n");
689 fprintf (fp, "\t\t\t\t}\n");
694 fprintf (fp, "\t\t\t\tcolor Color {\n");
695 fprintf (fp, "\t\t\t\t\tcolor [\n");
709 fprintf (fp, "\t\t\t\t\t%g %g %g", 0.0, 0.0, 0.0);
712 fprintf (fp, "\t\t\t\t\t%g %g %g", 1.0, .5, .5);
714 fprintf (fp, "\t\t\t\t\t%g %g %g", 1.0, 1.0, 1.0);
719 fprintf (fp, "]\n");
721 fprintf (fp, ",\n");
723 fprintf (fp, "\t\t\t}\n");
726 fprintf (fp, "\t\t\t}\n");
727 fprintf (fp, "\t\t}\n");
728 fprintf (fp, "\t]\n");
729 fprintf (fp, "}\n");
731 fclose (fp);