Treatment of boundary line overlap in a forest-sampling simulator