Beispiel #1
0
        public void Add(FamilyGeometrySummaryData otherData)
        {
            if (otherData == null)
            {
                return;
            }

            CurveCount                       += otherData.CurveCount;
            CurveLengthTotal                 += otherData.CurveLengthTotal;
            EdgeCount                        += otherData.EdgeCount;
            FaceCount                        += otherData.FaceCount;
            FaceAreaTotal                    += otherData.FaceAreaTotal;
            MeshCount                        += otherData.MeshCount;
            MeshNumberOfTriangleTotal        += otherData.MeshNumberOfTriangleTotal;
            PointCount                       += otherData.PointCount;
            PolylineCount                    += otherData.PolylineCount;
            PolylineNumberOfCoordinatesTotal += otherData.PolylineNumberOfCoordinatesTotal;
            ProfileCount                     += otherData.ProfileCount;
            SolidCount                       += otherData.SolidCount;
            SolidVolumeTotal                 += otherData.SolidVolumeTotal;
            SolidSurfaceAreaTotal            += otherData.SolidSurfaceAreaTotal;
            SolidFacesCountTotal             += otherData.SolidFacesCountTotal;
            SolidEdgesCountTotal             += otherData.SolidEdgesCountTotal;
            GeometryInstanceCount            += otherData.GeometryInstanceCount;
        }
Beispiel #2
0
        public bool Equal(FamilyGeometrySummaryData otherData)
        {
            if (otherData == null)
            {
                return(false);
            }

            if (CurveCount == otherData.CurveCount &&
                MathUtil.IsAlmostEqual(CurveLengthTotal, otherData.CurveLengthTotal) &&
                EdgeCount == otherData.EdgeCount &&
                FaceCount == otherData.FaceCount &&
                MathUtil.IsAlmostEqual(FaceAreaTotal, otherData.FaceAreaTotal) &&
                MeshCount == otherData.MeshCount &&
                MeshNumberOfTriangleTotal == otherData.MeshNumberOfTriangleTotal &&
                PointCount == otherData.PointCount &&
                PolylineCount == otherData.PolylineCount &&
                PolylineNumberOfCoordinatesTotal == otherData.PolylineNumberOfCoordinatesTotal &&
                ProfileCount == otherData.ProfileCount &&
                SolidCount == otherData.SolidCount &&
                MathUtil.IsAlmostEqual(SolidVolumeTotal, otherData.SolidVolumeTotal) &&
                MathUtil.IsAlmostEqual(SolidSurfaceAreaTotal, otherData.SolidSurfaceAreaTotal) &&
                SolidFacesCountTotal == otherData.SolidFacesCountTotal &&
                SolidEdgesCountTotal == otherData.SolidEdgesCountTotal)
            {
                return(true);
            }

            return(false);
        }