Lines Matching refs:fp

623     FILE* fp;
628 fp = fopen (fname, "wt");
629 if (fp == NULL)
632 fprintf (fp, "#VRML V2.0 utf8\n");
635 fprintf (fp, "DEF CamTest Group {\n");
636 fprintf (fp, "\tchildren [\n");
637 fprintf (fp, "\t\tDEF Cameras Group {\n");
638 fprintf (fp, "\t\t\tchildren [\n");
639 fprintf (fp, "\t\t\t\tDEF DefaultView Viewpoint {\n");
640 fprintf (fp, "\t\t\t\t\tposition 0 0 340\n");
641 fprintf (fp, "\t\t\t\t\torientation 0 0 1 0\n");
642 fprintf (fp, "\t\t\t\t\tdescription \"default view\"\n");
643 fprintf (fp, "\t\t\t\t}\n");
644 fprintf (fp, "\t\t\t]\n");
645 fprintf (fp, "\t\t},\n");
646 fprintf (fp, "\t]\n");
647 fprintf (fp, "}\n");
650 fprintf (fp, "Background {\n");
651 fprintf (fp, "\tskyColor [\n");
652 fprintf (fp, "\t\t.5 .5 .5\n");
653 fprintf (fp, "\t]\n");
654 fprintf (fp, "}\n");
657 fprintf (fp, "Transform {\n");
658 fprintf (fp, "\tscale .3 .3 .3\n");
659 fprintf (fp, "\tchildren [\n");
662 fprintf (fp, "\t\tShape {\n");
663 fprintf (fp, "\t\t\tappearance Appearance {\n");
664 fprintf (fp, "\t\t\t\tmaterial Material {\n");
665 fprintf (fp, "\t\t\t\t\tdiffuseColor 0 0.8 0\n");
666 fprintf (fp, "\t\t\t\t\temissiveColor 1.0 1.0 1.0\n");
667 fprintf (fp, "\t\t\t\t\tshininess 0.8\n");
668 fprintf (fp, "\t\t\t\t}\n");
669 fprintf (fp, "\t\t\t}\n");
670 fprintf (fp, "\t\t\tgeometry IndexedLineSet {\n");
671 fprintf (fp, "\t\t\t\tcoord Coordinate {\n");
672 fprintf (fp, "\t\t\t\t\tpoint [\n");
673 fprintf (fp, "\t\t\t\t\t0.0 0.0 0.0,\n");
674 fprintf (fp, "\t\t\t\t\t%f 0.0 0.0,\n", 255.0);
675 fprintf (fp, "\t\t\t\t\t0.0 %f 0.0,\n", 255.0);
676 fprintf (fp, "\t\t\t\t\t0.0 0.0 %f]\n", 255.0);
677 fprintf (fp, "\t\t\t\t}\n");
678 fprintf (fp, "\t\t\t\tcoordIndex [\n");
679 fprintf (fp, "\t\t\t\t\t0, 1, -1\n");
680 fprintf (fp, "\t\t\t\t\t0, 2, -1\n");
681 fprintf (fp, "\t\t\t\t\t0, 3, -1]\n");
682 fprintf (fp, "\t\t\t}\n");
683 fprintf (fp, "\t\t}\n");
686 fprintf (fp, "\t\tShape {\n");
687 fprintf (fp, "\t\t\tappearance Appearance {\n");
688 fprintf (fp, "\t\t\t\tmaterial Material {\n");
689 fprintf (fp, "\t\t\t\t\tdiffuseColor 0 0.8 0\n");
690 fprintf (fp, "\t\t\t\t\temissiveColor 1 1 1\n");
691 fprintf (fp, "\t\t\t\t\tshininess 0.8\n");
692 fprintf (fp, "\t\t\t\t}\n");
693 fprintf (fp, "\t\t\t}\n");
694 fprintf (fp, "\t\t\tgeometry PointSet {\n");
697 fprintf (fp, "\t\t\t\tcoord Coordinate {\n");
698 fprintf (fp, "\t\t\t\t\tpoint [\n");
709 fprintf (fp, "\t\t\t\t\t%g %g %g", v.n[0]+50, v.n[1], v.n[2]);
712 fprintf (fp, "]\n");
714 fprintf (fp, ",\n");
718 fprintf (fp, "\t\t\t\t}\n");
723 fprintf (fp, "\t\t\t\tcolor Color {\n");
724 fprintf (fp, "\t\t\t\t\tcolor [\n");
738 fprintf (fp, "\t\t\t\t\t%g %g %g", 0.0, 0.0, 0.0);
741 fprintf (fp, "\t\t\t\t\t%g %g %g", 1.0, .5, .5);
743 fprintf (fp, "\t\t\t\t\t%g %g %g", 1.0, 1.0, 1.0);
748 fprintf (fp, "]\n");
750 fprintf (fp, ",\n");
752 fprintf (fp, "\t\t\t}\n");
755 fprintf (fp, "\t\t\t}\n");
756 fprintf (fp, "\t\t}\n");
757 fprintf (fp, "\t]\n");
758 fprintf (fp, "}\n");
760 fclose (fp);