public FaceGroup(FaceInfo face, double maxDistance) : base(face.Direction) { MaxDistance = maxDistance; BoundingBox = face.GetShape().GetBBox(); Faces.Add(face); }
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); }