Esempio n. 1
0
 public FaceGroup(FaceInfo face, double maxDistance)
     : base(face.Direction)
 {
     MaxDistance = maxDistance;
     BoundingBox = face.GetShape().GetBBox();
     Faces.Add(face);
 }
Esempio n. 2
0
        public bool AddFace(FaceInfo face)
        {
            var box = face.GetShape().GetBBox();

            if (MaxDistance < box.GetCenter().Distance(BoundingBox.GetCenter()))
            {
                return(false);
            }

            if (!CompareWithKey(face.Direction))
            {
                return(false);
            }

            BoundingBox.Merge(box);
            Faces.Add(face);
            return(true);
        }