internal override bool ParseNodeBodyElement(string id, VRMLParser parser) { if(id=="enabled") Enabled=parser.ParseBoolValue(); else if(id=="plane") Plane=parser.ParseSFVec4fValue(); else return false; return true; }
internal SFVec4f ParseSFVec4fValue() { // float float float float try { SFVec4f ret=new SFVec4f(); ret.X=ParseDoubleValue(); ret.Y=ParseDoubleValue(); ret.Z=ParseDoubleValue(); ret.W=ParseDoubleValue(); return ret; } catch(UserCancellationException) { throw; } catch(Exception ex) { ErrorParsingField(VRMLReaderError.SFVec4fInvalid, ex); } return null; }
public x3dClipPlane() { Enabled=true; Plane=new SFVec4f(0, 1, 0, 0); }