Skip to main content

OpenTD .NET8 reference 2025 R2

OpenTD.PolylineVertex Class Reference

Last update: 16.07.2025

Describes a vertex and attached line segment in a Polyline. More...

Public Member Functions

 PolylineVertex (double x, double y, double bulge=0.0, double startWidth=0.0, double endWidth=0.0, int vertexIdentifier=0)
 
 PolylineVertex ()
 

Properties

Point2d Location [get, set]
 
double Bulge [get, set]
 Tangent of 1/4 of the included angle of the arc. Positive for arcs that go counter-clockwise from the start point to end point. Straight segments have a bulge of 0. Semicircles have a bulge of +/-1.
 
DimensionalIfPositive< ModelLengthStartWidth [get, set]
 The starting width of the line segment, in-plane with the polyline.
 
DimensionalIfPositive< ModelLengthEndWidth [get, set]
 The ending width of the line segment, in-plane with the polyline.
 
int VertexIdentifier [get, set]
 Added for completeness. Do not use in most cases.
 

Detailed Description

Describes a vertex and attached line segment in a Polyline.

See also
OpenTD.Polyline

Constructor & Destructor Documentation

◆ PolylineVertex() [1/2]

OpenTD.PolylineVertex.PolylineVertex ( double x,
double y,
double bulge = 0::0,
double startWidth = 0::0,
double endWidth = 0::0,
int vertexIdentifier = 0 )
inline

◆ PolylineVertex() [2/2]

OpenTD.PolylineVertex.PolylineVertex ( )
inline

Property Documentation

◆ Bulge

double OpenTD.PolylineVertex.Bulge
getset

Tangent of 1/4 of the included angle of the arc. Positive for arcs that go counter-clockwise from the start point to end point. Straight segments have a bulge of 0. Semicircles have a bulge of +/-1.

◆ EndWidth

DimensionalIfPositive<ModelLength> OpenTD.PolylineVertex.EndWidth
getset

The ending width of the line segment, in-plane with the polyline.

◆ Location

Point2d OpenTD.PolylineVertex.Location
getset

◆ StartWidth

DimensionalIfPositive<ModelLength> OpenTD.PolylineVertex.StartWidth
getset

The starting width of the line segment, in-plane with the polyline.

◆ VertexIdentifier

int OpenTD.PolylineVertex.VertexIdentifier
getset

Added for completeness. Do not use in most cases.


The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/PolylineVertex.cs

Connect with Ansys