Beispiel #1
0
        /// <summary>
        /// Visualizes the intersection in BIM environment.
        /// </summary>
        /// <param name="visualizer">The visualizer.</param>
        /// <param name="rayOrigin">The ray origin.</param>
        /// <param name="cellularFloor">The cellular floor.</param>
        /// <param name="elevation">The elevation.</param>
        /// <param name="pointSize">Size of the point.</param>
        public void Visualize(I_OSM_To_BIM visualizer, UV rayOrigin, CellularFloorBaseGeometry cellularFloor, double elevation, double pointSize = .3)
        {
            switch (this.Type)
            {
            case BarrierType.Visual:
                //visualizer.VisualizeBoundary(cellularFloor.VisualBarriers[this.BarrierIndex].BoundaryPoints, elevation);

                visualizer.VisualizeLine(cellularFloor.VisualBarrierEdges[this.EdgeIndexInCellularFloor], elevation);
                break;

            case BarrierType.Physical:
                //visualizer.VisualizeBoundary(cellularFloor.PhysicalBarriers[this.BarrierIndex].BoundaryPoints, elevation);

                visualizer.VisualizeLine(cellularFloor.PhysicalBarrierEdges[this.EdgeIndexInCellularFloor], elevation);
                break;

            case BarrierType.Field:
                //visualizer.VisualizeBoundary(cellularFloor.PhysicalBarriers[this.BarrierIndex].BoundaryPoints, elevation);

                visualizer.VisualizeLine(cellularFloor.FieldBarrierEdges[this.EdgeIndexInCellularFloor], elevation);
                break;

            default:
                break;
            }
            //visualizer.VisualizePoint(IntersectingPoint, pointSize, elevation);
            visualizer.VisualizeLine(new UVLine(rayOrigin, this.IntersectingPoint), elevation);
        }
Beispiel #2
0
 /// <summary>
 /// Visualizes this line in the BIM environment
 /// </summary>
 /// <param name="visualizer">The visualizer.</param>
 /// <param name="elevation">The elevation.</param>
 public void Visualize(I_OSM_To_BIM visualizer, double elevation)
 {
     visualizer.VisualizeLine(this, elevation);
 }