public RadialBindModel(TriangleData triangle, RadialController controller, RadialBindModel parent) { IsSet = false; _triangle = triangle; _controller = controller; _pool = controller.Pool; _parent = parent; _currentVertices = _targetVertices = new TriangleVertices(_triangle); _hasChildren = _controller.IsAbleToHaveChildren(_currentVertices); if (_hasChildren) { SetChildren(); } }
public RadialBreakModel(TriangleData triangle, RadialController controller, RadialBreakModel parent) { IsSet = false; _triangle = triangle; _controller = controller; _pool = controller.Pool; _parent = parent; _currentVertices = new TriangleVertices(_triangle); _centroidVector = _currentVertices.GetCentroid(); _hasChildren = _controller.IsAbleToHaveChildren(_currentVertices); if (_hasChildren) { SetChildren(); } if (_parent == null) { SetVertices(_currentVertices); } }