Пример #1
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "closed")
     {
         Closed = parser.ParseBoolValue();
     }
     else if (id == "key")
     {
         Key.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else if (id == "keyValue")
     {
         KeyValue.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "keyVelocity")
     {
         KeyVelocity.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "normalizeVelocity")
     {
         NormalizeVelocity = parser.ParseBoolValue();
     }
     else
     {
         return(false);
     }
     return(true);
 }
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "tau")
     {
         Tau = parser.ParseDoubleValue();
     }
     else if (id == "tolerance")
     {
         Tolerance = parser.ParseDoubleValue();
     }
     else if (id == "initialDestination")
     {
         InitialDestination.Values.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "initialValue")
     {
         InitialValue.Values.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "order")
     {
         Order = parser.ParseIntValue();
     }
     else
     {
         return(false);
     }
     return(true);
 }
		internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
		{
			if(id=="beginCap") BeginCap=parser.ParseBoolValue();
			else if(id=="ccw") CCW=parser.ParseBoolValue();
			else if(id=="convex") Convex=parser.ParseBoolValue();
			else if(id=="creaseAngle") CreaseAngle=parser.ParseDoubleValue();
			else if(id=="crossSection")
			{
				if(wasCrossSection) CrossSection.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
				else CrossSection=parser.ParseSFVec2fOrMFVec2fValue();
				wasCrossSection=true;
			}
			else if(id=="endCap") EndCap=parser.ParseBoolValue();
			else if(id=="orientation")
			{
				if(wasOrientation) Orientation.AddRange(parser.ParseSFRotationOrMFRotationValue());
				else Orientation=parser.ParseSFRotationOrMFRotationValue();
				wasOrientation=true;
			}
			else if(id=="scale")
			{
				if(wasScale) Scale.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
				else Scale=parser.ParseSFVec2fOrMFVec2fValue();
				wasScale=true;
			}
			else if(id=="solid") Solid=parser.ParseBoolValue();
			else if(id=="spine")
			{
				if(wasSpine) Spine.AddRange(parser.ParseSFVec3fOrMFVec3fValue());
				else Spine=parser.ParseSFVec3fOrMFVec3fValue();
				wasSpine=true;
			}
			else return false;
			return true;
		}
Пример #4
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "controlPoint")
     {
         ControlPoint.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "tessellation")
     {
         Tessellation = parser.ParseIntValue();
     }
     else if (id == "weight")
     {
         Weight.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else if (id == "closed")
     {
         Closed = parser.ParseBoolValue();
     }
     else if (id == "knot")
     {
         Knot.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else if (id == "order")
     {
         Order = parser.ParseIntValue();
     }
     else
     {
         return(false);
     }
     return(true);
 }
		internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
		{
			if(id=="easeInEaseOut") EaseInEaseOut.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
			else if(id=="key") Key.AddRange(parser.ParseSFFloatOrMFFloatValue());
			else return false;
			return true;
		}
		internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
		{
			if(id=="vertices")Vertices.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
			else if(id=="solid") Solid=parser.ParseBoolValue();
			else return false;
			return true;
		}
Пример #7
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "controlPoint")
     {
         ControlPoint.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else
     {
         return(false);
     }
     return(true);
 }
Пример #8
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "lineSegments")
     {
         LineSegments.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else
     {
         return(false);
     }
     return(true);
 }
		internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
		{
			if(id=="controlPoint") ControlPoint.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
			else if(id=="weight") Weight.AddRange(parser.ParseSFFloatOrMFFloatValue());
			else if(id=="uDimension") UDimension=parser.ParseIntValue();
			else if(id=="uKnot") UKnot.AddRange(parser.ParseSFFloatOrMFFloatValue());
			else if(id=="uOrder") UOrder=parser.ParseIntValue();
			else if(id=="vDimension") VDimension=parser.ParseIntValue();
			else if(id=="vKnot") VKnot.AddRange(parser.ParseSFFloatOrMFFloatValue());
			else if(id=="vOrder") VOrder=parser.ParseIntValue();
			else return false;
			return true;
		}
Пример #10
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "easeInEaseOut")
     {
         EaseInEaseOut.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "key")
     {
         Key.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else
     {
         return(false);
     }
     return(true);
 }
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "vertices")
     {
         Vertices.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "solid")
     {
         Solid = parser.ParseBoolValue();
     }
     else
     {
         return(false);
     }
     return(true);
 }
Пример #12
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "controlPoint")
     {
         ControlPoint.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
     }
     else if (id == "weight")
     {
         Weight.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else if (id == "uDimension")
     {
         UDimension = parser.ParseIntValue();
     }
     else if (id == "uKnot")
     {
         UKnot.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else if (id == "uOrder")
     {
         UOrder = parser.ParseIntValue();
     }
     else if (id == "vDimension")
     {
         VDimension = parser.ParseIntValue();
     }
     else if (id == "vKnot")
     {
         VKnot.AddRange(parser.ParseSFFloatOrMFFloatValue());
     }
     else if (id == "vOrder")
     {
         VOrder = parser.ParseIntValue();
     }
     else
     {
         return(false);
     }
     return(true);
 }
Пример #13
0
 internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
 {
     if (id == "beginCap")
     {
         BeginCap = parser.ParseBoolValue();
     }
     else if (id == "ccw")
     {
         CCW = parser.ParseBoolValue();
     }
     else if (id == "convex")
     {
         Convex = parser.ParseBoolValue();
     }
     else if (id == "creaseAngle")
     {
         CreaseAngle = parser.ParseDoubleValue();
     }
     else if (id == "crossSection")
     {
         if (wasCrossSection)
         {
             CrossSection.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
         }
         else
         {
             CrossSection = parser.ParseSFVec2fOrMFVec2fValue();
         }
         wasCrossSection = true;
     }
     else if (id == "endCap")
     {
         EndCap = parser.ParseBoolValue();
     }
     else if (id == "orientation")
     {
         if (wasOrientation)
         {
             Orientation.AddRange(parser.ParseSFRotationOrMFRotationValue());
         }
         else
         {
             Orientation = parser.ParseSFRotationOrMFRotationValue();
         }
         wasOrientation = true;
     }
     else if (id == "scale")
     {
         if (wasScale)
         {
             Scale.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
         }
         else
         {
             Scale = parser.ParseSFVec2fOrMFVec2fValue();
         }
         wasScale = true;
     }
     else if (id == "solid")
     {
         Solid = parser.ParseBoolValue();
     }
     else if (id == "spine")
     {
         if (wasSpine)
         {
             Spine.AddRange(parser.ParseSFVec3fOrMFVec3fValue());
         }
         else
         {
             Spine = parser.ParseSFVec3fOrMFVec3fValue();
         }
         wasSpine = true;
     }
     else
     {
         return(false);
     }
     return(true);
 }
		internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
		{
			if(id=="lineSegments") LineSegments.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
			else return false;
			return true;
		}
		internal override bool ParseNodeBodyElement(string id, VRMLParser parser)
		{
			if(id=="controlPoint") ControlPoint.AddRange(parser.ParseSFVec2fOrMFVec2fValue());
			else return false;
			return true;
		}