Civil Engineer's Forum-FORUM8
Set this page as your homepage QR

Facebook - FORUM8

Twitter - FORUM8

instagram - FORUM8

YouTube - FORUM8

 Sitemap | Terms of Service | Inquiries | English translation site | Japanese | English | Korean | Vietnam | Francais

8
 3D CAD integration plugin
To exchange data between UC-win/Road and other applications such as 3D CAD software, you can use plugins developed using the UC-win/Road SDK. Currently, many collaborative plugins have already been developed and are in use. This section explains how to create a collaborative plugin using sample source code.
 Fundamentals of data integration

 The 3D/VR software UC-win/Road enables the exchange of 3D data with various CAD applications. The built-in collaboration plugins, developed using an SDK, support applications such as AutoCAD, Civil 3D [Note 1], and InRoads [Note 2]. Additionally, it includes plugins for reading and writing files in formats such as LandXML and ShapeFile.

 Typically, when developing integration features with CAD applications, we focus on 3 types of objects provided by UC-win/Road.

 One of them is a 3D model. In UC-win/Road, you can handle general 3D information using 3D models, and these store versatile information related to polygon triangle vertices, color information, and images. This allows for the exchange of geometric data with various other CAD software.

 Next, there are road objects. Unlike 3D models, they contain the original design data rather than the final shape information, and automatically generate a 3D shape before creating a 3D drawing. This feature enables bidirectional data exchange with road design applications.

 Finally, the terrain objects in UC-win/Road store elevation data for the ground. These objects are even easier to handle than 3D models, and they also take into account the generation of road embankments.

 Furthermore, CAD data can be managed by the plugin's program itself, and it can be rendered on the UC-win/Road screen using standard OpenGL functions. The following explanation will focus primarily on data integration for road networks.


 UC-win/Road road data structure

 The Road object in UC-win/Road contains linear information for a single road segment, as well as cross-sectional profile data, and is an object that supports the generation and drawing of 3-dimensional models.

 As linear information, there are horizontal alignment and vertical alignment. The horizontal alignment data and the changes in cross-sectional shape are stored directly under the Road object. The vertical alignment data is stored within a VerticalCurve object, which is a member of the Road object.


■ Figure 1


■ Road Alignment (Planar Geometry)
 Each TurningPoint located below a Road object defines an Intersection Point (IP) on a plane line. This is the point where the extension of a straight road segment intersects. The planar linear segments are defined by an array of TurningPoints, and this array can be accessed through the turningPoint property of the Road object.

■ Figure 2

 For each IP point, parameters are defined for curves that connect linear spaces, and functions for calculating these curves are also provided. In UC-win/Road, there are 5 types of IP points:
  1. En: Circular curve
  2. Transition curves, circles, and transition curves: These are curves that enter a curve (to prevent it from becoming abruptly circular) and exit through another transition curve
  3. Transition curves and circles: Curves that begin with or end at a transition curve
  4. Yen/Easing Curve: This curve is the same as the one described above, but with the order of "easing curve" and "circle" reversed relative to the linear direction of progression
  5. Transition curve: This refers to a curve consisting only of a transition curve

 Curves like those described above are often used in combination with other curves. The main members of TurningPoint are shown in Figure 3. Depending on the type of TurningPoint, certain parameters may be used while others are not.

 For example, if the type is "Circle," parameters related to easing curves are not used. Although the data structure declares a type of "_CircleTransitionCircle" (circle-easing curve-circle), it is actually not used. Furthermore, _RoadVertex is used for spline roads.

■ Changes in the cross-section of the road
 The cross-slope of the road is defined using a Section object, and it is possible to change the cross-slope within a single road. To set the cross-slope at the start or at an intermediate point, apply a Section object. A single Section object can be applied to multiple locations or to a different road.

 To apply a Section object, use an object called RoadThing. The RoadThing object defines changes to the road. For cross-section changes, it stores the additional distance along the road alignment where the change is applied, and it references the Section object that should be applied.

 Using RoadThing, in addition to changes in cross-sections, you can also define features such as transitions, bridges, and tunnel spaces. Transitions are added between 2 cross-section changes and are used to set an interpolation process so that the shape of the cross-section does not change abruptly. The class structure of RoadThing is shown in Figure 4.

■ Figure 3: RoadThing class structure


■ Road Alignment (Vertical)
 The vertical alignment of roads, like the horizontal alignment, has a sequence of points where direction changes, and parameters are set for curves that connect the straight segments of the vertical alignment.

 Access the IP point from the curvePoint property of the VerticalCurve object. For a vertical curve, a quadratic curve is used, and the parameters that can be set are the length of the curve, often referred to as VCL (Vertical Curve Length).

■ Figure 4: Longitudinal profile


■ Cross-sectional objects
 Section objects, which represent cross-sections, are applied to roads to define the road's lateral gradient. The list of section objects is independent of the list of roads and can be accessed through the Section property of the ProjectForRoad object. A single cross-section requires the definition of 4 different sections: a section that includes the pavement and sidewalk, a bridge section used in bridge structures, a tunnel section for the road surface within a tunnel, and an elevation profile of the road surface used for roadside facilities.

 Each cross-sectional shape is defined by an arrangement of points, and each point stores associated attributes. A line segment exists between 2 points, and the drawing method is determined by the specified attributes.

 Furthermore, the attributes of a line segment use the attributes of the endpoint that comes later (Figure 5). Among the attributes, there are types of line segments such as "curb," "sidewalk," "planting area," "guardrail," "roadway," and "other." For "roadway," it is also necessary to specify the number of lanes and whether it is on the left or right side.


 Sample code for road APIs

 This sample creates a new road and sets the IP points. The created road is added to the project passed as an argument. For the cross-section, the default cross-section configured in UC-win/Road's regional settings is applied.

■ Figure 5: Cross-section


function MakeOneRoad
   (project : IF8ProjectForRoad) : IF8Road;
var
 // Interface variables for road objects
road : IF8Road;
 // Interface variables for road alignment change point (IP) objects
turningPoint : IF8TurningPoint;
 // Interface variable for road alignment objects
verticalCurve : IF8VerticalCurve;
 // This variable stores the index of points where there is a change in the vertical direction
index :integer;

begin
 // This creates a new road object using the project object.
road := project.CreateNewRoad;

 // The following defines the horizontal alignment of the road
 // Define the starting coordinates of the road
 // Specifies the type of planar coordinates and IP points
 //Indicates the starting and ending points of a road
 // Use "TransitionCircleTransition"

road.CreateTurningPoint(1000, 1000,_TransitionCircleTransition);
 // Defines a single curve on the road

turningPoint := road.CreateTurningPoint(2000, 1000,
_TransitionCircleTransition);
 // Set the parameters for the IP point
 // Radius of curvature of the easing curve on the starting side
turningPoint.p_R1 := 1000;
 // Radius of curvature of an arc
turningPoint.p_R0 := 500;
 Arc length
turningPoint.p_Lr := 400;
 // TransitionCircleTransition represents the radius of curvature for the easing curve on the terminal side
 Setting the value to 0 results in an infinite radius (curvature = 0)
turningPoint.p_R4 := 0;
 The easing curves on both the starting and ending sides use the same constant value
 //Please set the parameters below
turningPoint.p_TPParam := _AaAb;
 // Define the coordinates of the road's endpoint
road.CreateTurningPoint (2000, 2000, _TransitionCircleTransition);
 // Execute calculations for track geometry
road.CalculateEverything;

 // From here, define the vertical alignment of the road
 // Generates a vertical profile. Internally, it uses the starting and ending points of the road
     // Calculate ground elevation using planar coordinates and generate a longitudinal profile
     Since this function performs initialization, it sets the plane to a linear state. It is better to execute this function later. After calling this function..
     The starting and ending points of the vertical alignment are set
road.MakeVerticalCurve(false);
verticalCurve := road.verticalCurve;
 // Set the starting and ending heights
verticalCurve.curvePoint[1].iSaveData. point.Y := 0;
verticalCurve.curvePoint[2].iSaveData. point.Y := 0;
 // Add 1 IP point to the vertical alignment curve
if verticalCurve.InsertTurningPoint (1000, 100, index) = true then
begin
 // Set the length of the curve
verticalCurve.curvePoint[index]. iSaveData.leftL := 200;
verticalCurve.curvePoint[index]. iSaveData.rightL := 200;
end;
 // Execute the calculation for vertical alignment
verticalCurve.CurveSlopes;

result := road;
end;

Announcement of experiential seminars
 Programming introductory seminar for engineers
• Date and time June 13, 2012 (Wednesday), 1:30 PM to 5:00 PM
• Course fees ¥15,750 (including tax)
• This venue FORUM8 Tokyo headquarters, GT Tower seminar room
※TV conferencing systemThe event will be held simultaneously in Tokyo, Osaka, Nagoya, Fukuoka, and Sendai

     
Previous page    Index    Next page
(Featured in the Spring issue of Up&Coming '12)
Go back
Up&Coming

FORUM8


Contact information




■ [User Introductions]
sugiko Corporation, Technical Sales Department
Scaffolding Safety Consulting Department

Mie University, Graduate School of Engineering
Seika Digital Image Co., Ltd.
Infranet Co., Ltd.






>> Product comprehensive catalog


>> Premium membership services
>> Financial support

Recently released products
■ Electrical Media Delivery Support Tool Version 19
■ Retaining wall design, 3D reinforcement detailing, Version 26
■ Bridge Maintenance Plan System Version 7
■ Calculation for concrete slab placement (compliant with R7/H29 road standards), Version 2

Campaign in progress
■ Within 2 years of release, enjoy a 30% discount plus 30,000 FPB points back
■ Smart download
■ Design Festival 2026, exclusive for visitors
■ Drone school discount

Seminar and event calendar
Upcoming seminars
11/26  Metavernia F8 VPS experience
11/27  Introduction to Structural Analysis
12/2  Engineer programming
  Introduction to yoga experience
12/3  DesignBuilder experience
12/4  Reinforced concrete foundation

Software/Support Services
VR software(Virtual reality)
《UC-win series》
Road simulator
• Driving simulator
• Micro-simulation
Evacuation analysis and simulation
>> Other VR software
FEM analysis software
・3-dimensional plate dynamic nonlinear analysis
・2-dimensional dynamic nonlinear analysis
・A comprehensive finite element analysis system
>> Other FEM analysis software
Civil engineering, architecture, and design software
《UC-1 Series》
・Structural analysis/cross-section
Bridge superstructure
・Bridge substructure components
Foundation work
Temporary construction
Road construction and earthworks
・Harbors
・Hydraulic engineering
・Subsurface investigation and analysis
・CAD/CIM systems, construction accounting
• Maintenance and management, earthquake risk
Architecture
・Ships/Evacuation
>> Other civil engineering, construction, and design software
Cloud
《Supercomputer Cloud®》
・Supercomputer cloud services
《VR-Cloud®》
・Real-time VR system
Analytical support services/support
・UC-win/Road support system
・Design verification support service
・Engineer's Studio® analysis support
・Ground investigation analysis support services
・EXODUS/SMARTFIRE analysis support
・XPSWMM analysis support services
Building energy simulation
• 3D laser scanning and modeling
・3D modeling services
• 3D report and drawing services
>> Other support services
Various solutions
Seismic resistance assessment/analysis
・Design of steel bridges
・New bridge construction methods
Architectural design
・Local governments
・Medical VR systems
・Parking solutions
・ECO solutions
>> Other solutions