qinjie
2023-11-14 1df41a6711441b7afcac96d756ff0f9a9035246f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Hydro.Revit.Model
{
    public class PositionModel
    {
        public Position min { get; set; }
 
        public Position max { get; set; }
 
        public Position getCenter
        {
            get
            {
                return new Position()
                {
                    x = (max.x + min.x) / 2,
                    y = (max.y + min.y) / 2,
                    z = (min.z + min.z) / 2
                };
 
            }
        }
    }
 
    public class Position
    {
        public float x { get; set; }
        public float y { get; set; }
        public float z { get; set; }
    }
}