# Construct

## RoundVerts

RoundVerts tools not only round vertices ,but also optimize poly object by decreasing or increasing the number of vertices .Usually ,road net is turned from spline shape, the number of vertices in corners maybe insufficient or too many,you often need to keep a balance between number vertices and accuracy.With RoundVerts tools ,you don't worry about the steps in shape-editing stage.

### RoundVerts:

A RoundVerts tool with UI,you can manually input parameters such as the number of vertices and the radius of an Arc .This tool provide 3 methods to control how to round vertices:

RoundVerts

the arc tangent to two edges.

the arc of vertices tangent to one edge.

the arc through three points, two is the positions of two end vertices,one is a point snapped,moving mouse can change arc radius.

Below 3 RoundVerts tools is all one-key, more powerful and very rapid, which use more efficent methods to round verts,can auto figure out radius of arc and how many verts should be remained.

### Auto RoundVerts Tools:ArcVts(3P) | ArcVts(Rad) |ArcVts(TT)

Select at least three continuous verts,from which take start vert, end vert,and a random vert to caculate an arc through these 3 verts to round selected vertices.

Fillet a vertex and set its radius,or select more vertices to round and ajust its radius through a spinner in UI.

Select a continuous vertices(at least 2),take adjacent two edges as tangents to caculate an arc to round.-->

#### How to Control Number of Vertices on an Arc

Number of Vertices on an arc is controled via "SegsVsArc" under "Manager".For arcs with same degree,the bigger the radius ,the more vertices are needed.So I defined a table to describe the mapping relation:Radius versus degree that each segment of Arc occupy,thus the vertices number on an Arc will be gotten via interpolation.

If you need more vertices,you can follow steps blow:

- import an arc(select an segment of a spline or continous vertices which can form an arc) to get the radius
- then enter the desired numbers on the arc
- press "=>Rescale" .

Then the change will be applied to Auto RoundVerts tools and Piece poly.

The video below show the operating.

Control Number of Vertices

## Smooth Road

Make road have a smooth transition from one elevation to anther elevation ,at same time keep road cross-section up-right without tilt . TerrainAxe give you several methods to control how to smooth your road. Before you use this tools ,you need to select a part of border of your road.Maybe you also need to set several elevation for key verts and select them.

### SmoothRoad:

This tool has a Graphic UI,you can import road data to control curve,ajust curve shape to the road appearence you desired ,then export curve information to road.If you need more effcient methods ,you can use below SmoothRoad tools.

### Quick SMRoad

Base on the elevations of ends of road to make linear transition with the distance from start vertices.

Base on the elevations of start and end vertices of road to make bezier curve transition with the distance from start vertices.

Select a length of road by select border,and set the elevation of key vertices and select,then press a key to smooth the road.

Eliminate noise of road and make which have a smooth appearence.This is a very fast smooth method,you just need to select a part of road then press a key.

## Weld Vertex to Edge

weld vertices to edges?Yes,Easy to join polygons together,eliminate the seams difficult to observe.

Weld1VertToEg | Weld2VertsToEg | weld_X |

WeldVtsToEgs | SuperWeld |

Weld one vertex to one selected edge.

Weld two vertices to selected edge.

Select multi vertices ,the tool will search the nearest edge (if within distance threshold) for each vertex and weld them together.

Select two edges and one vertex of one of the edges,the vertex will be weld to the intersection of two edges.

#### Control the behaviour of welding

Run [AxeSetting] in Manager Category ,[AxeToolSetting] Dialog will appear,as shown in the below pic.The options in [WeldtoEdge] Group will control how the vertex is welded to selected edge(s)

- [ToTarget]: if checked, the welding of [Weld1VtToEg] and [Weld2VtsToEg] will happen on selected edge ,or at selected vertices;
- [Weld]:If unchecked ,no welding happen, [Weld2VtsToEg] and [SuperWeld] will create a polygon or multiple polygons between selected vertices and selected edges;
- [KeepTopolgy]:If checked, [SuperWeld] will extend topology lines from old polyons occupied by selected vertices to new created polygons.
- [WeldThres]:Welding threshold for [Weld_Vts&Egs].If welding fail or gaps still exist,try to increase the value.

Tools used to change construct of poly,such as move verts to a plane along z axis

### ConformToRoad | ProjToFace |BBoxToTerrain| ExtendVerts

Project vertices of ground surface onto picked road surface.the projected vertices is what are overlapped with road watched from top view.

ConformToRoad | ProjToFace |

BBoxToTerrain | ExtendVerts |

### MoveVerts | ZAlign3P | ZPlaneFace

MoveVerts_toGround | PlaneBy3P(ZAlign(3P)) |

Plane_ByVerts | Plane_ByNormal(ZAlign(Face)) |