private static IfcBooleanClippingResult ClipByPlaneBase(this IfcBooleanOperand first, IfcPlane plane) { return(new IfcBooleanClippingResult(IfcBooleanOperator.DIFFERENCE, first, new IfcHalfSpaceSolid(plane, new IfcBoolean(false)))); }
internal IfcProfileDef underlyingSweptProfile() { if (mOperator == IfcBooleanOperator.DIFFERENCE) { IfcBooleanOperand first = FirstOperand; IfcSweptAreaSolid sweptAreaSolid = first as IfcSweptAreaSolid; if(sweptAreaSolid != null) return sweptAreaSolid.SweptArea; IfcBooleanResult booleanResult = first as IfcBooleanResult; if(booleanResult != null) return booleanResult.underlyingSweptProfile(); } return null; }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: _operator = (IfcBooleanOperator) System.Enum.Parse(typeof (IfcBooleanOperator), value.EnumVal, true); return; case 1: _firstOperand = (IfcBooleanOperand)(value.EntityVal); return; case 2: _secondOperand = (IfcBooleanOperand)(value.EntityVal); return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _operator = (IfcBooleanOperator)Enum.Parse(typeof(IfcBooleanOperator), value.EnumVal, true); break; case 1: _firstOperand = (IfcBooleanOperand)value.EntityVal; break; case 2: _secondOperand = (IfcBooleanOperand)value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public static IfcBooleanResult Intersection(this IfcBooleanOperand first, IfcBooleanOperand second) { return(new IfcBooleanResult(IfcBooleanOperator.INTERSECTION, first, second)); }
public static IfcBooleanResult Difference(this IfcBooleanOperand first, IfcBooleanOperand second) { return(new IfcBooleanResult(IfcBooleanOperator.DIFFERENCE, first, second)); }
public static IfcBooleanResult Union(this IfcBooleanOperand first, IfcBooleanOperand second) { return(new IfcBooleanResult(IfcBooleanOperator.UNION, first, second)); }
public IfcBooleanResult(IfcBooleanOperator op, IfcBooleanOperand first, IfcBooleanOperand second) : base(first.Database) { mOperator = op; mFirstOperand = first.Index; mSecondOperand = second.Index; }
internal IfcBooleanResult(DatabaseIfc db, IfcBooleanResult b) : base(db, b) { mOperator = b.mOperator; FirstOperand = db.Factory.Duplicate(b.mDatabase[b.mFirstOperand]) as IfcBooleanOperand; SecondOperand = db.Factory.Duplicate(b.mDatabase[b.mSecondOperand]) as IfcBooleanOperand; }
public IfcBooleanResult(IfcBooleanOperator __Operator, IfcBooleanOperand __FirstOperand, IfcBooleanOperand __SecondOperand) { this._Operator = __Operator; this._FirstOperand = __FirstOperand; this._SecondOperand = __SecondOperand; }
public IXbimSolid CreateSolid(IfcBooleanOperand ifcSolid) { return(_engine.CreateSolid(ifcSolid)); }
public IXbimSolid CreateSolid(IfcBooleanOperand ifcSolid) { return _engine.CreateSolid(ifcSolid); }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _operator = (IfcBooleanOperator) Enum.Parse(typeof (IfcBooleanOperator), value.EnumVal, true); break; case 1: _firstOperand = (IfcBooleanOperand) value.EntityVal; break; case 2: _secondOperand = (IfcBooleanOperand) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
internal IfcBooleanResult(DatabaseIfc db, IfcBooleanResult b, DuplicateOptions options) : base(db, b, options) { mOperator = b.mOperator; FirstOperand = db.Factory.Duplicate(b.FirstOperand) as IfcBooleanOperand; SecondOperand = db.Factory.Duplicate(b.SecondOperand) as IfcBooleanOperand; }
public IfcBooleanClippingResult(IfcBooleanOperator __Operator, IfcBooleanOperand __FirstOperand, IfcBooleanOperand __SecondOperand) : base(__Operator, __FirstOperand, __SecondOperand) { }
public IfcBooleanResult(IfcBooleanOperator op, IfcBooleanOperand first, IfcBooleanOperand second) : base(first.Database) { mOperator = op; mFirstOperand = first.Index; mSecondOperand = second.Index; }