public FieldValue(uint quantityId, FieldValueType type, FieldDerivativeType dt, bool isBubble, FieldShowType showType, uint pointCnt) { QuantityId = quantityId; Type = type; Dof = GetDof(Type); DerivativeType = dt; IsBubble = isBubble; ShowType = showType; AllocValues(pointCnt); }
public uint AddFieldValue(FieldValueType fieldType, FieldDerivativeType derivativeType, uint quantityId, bool isBubble, FieldShowType showType) { uint pointCnt = 0; if (isBubble) { pointCnt = (uint)GetTriangleFEIds(quantityId).Count; } else { pointCnt = GetCoordCount(quantityId); } FieldValue fv = new FieldValue(quantityId, fieldType, derivativeType, isBubble, showType, pointCnt); uint freeId = FieldValueArray.GetFreeObjectId(); uint valueId = FieldValueArray.AddObject(freeId, fv); System.Diagnostics.Debug.Assert(valueId == freeId); return(valueId); }