예제 #1
0
 }/// <summary>
 /// used by mfparam.vrml2par
 /// </summary>
 /// <param name="f"></param>
 /// <param name="sfp"></param>
 /// <param name="n"></param>
 /// <param name="mode"></param>
 /// <returns></returns>
 public override bool instring(filter f, sfparam sfp, nodeBean n, int mode)
 {
     String s;
     try
     {
         s = f.nextToken();
         if (s != null) if (s.Equals("IS"))
             {
                 s = f.nextToken();
                 if (sfp != null) sfp.setIs(s);
                 return true;
             }
         x = Double.Parse(s);
         s = f.nextToken();
         y = Double.Parse(s);
         s = f.nextToken();
         z = Double.Parse(s);
         s = f.nextToken();
         angle = Double.Parse(s);
     }
     catch (Exception e)
     {
         Console.WriteLine("sfrotation.instring {0}", e);
     }
     return true;
 }/// <summary>
예제 #2
0
 /// used by mfparam.vrml2par
 /// </summary>
 /// <param name="f"></param>
 /// <param name="sfp"></param>
 /// <param name="n"></param>
 /// <param name="mode"></param>
 /// <returns></returns>
 public override bool instring(filter f, sfparam sfp, nodeBean n, int mode)
 {
     String s;
     try
     {
         s = f.nextToken();
         if (s != null) if (s.Equals("IS"))
             {
                 s = f.nextToken();
                 if (sfp != null) sfp.setIs(s);
                 return true;
             }
         x = Double.Parse(s);
         s = f.nextToken();
         y = Double.Parse(s);
         s = f.nextToken();
         z = Double.Parse(s);
         s = f.nextToken();
         angle = Double.Parse(s);
     }
     catch (Exception e)
     {
         Console.WriteLine("sfrotation.instring {0}", e);
     }
     return true;
 }