}/// <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>
/// 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; }