thirdparty/dxflib: suport for vertex start/end line width attribute.
This change is required to correctly import DXFs exported by Cadence.
This commit is contained in:
parent
df47c1c4e9
commit
c60eecc165
|
@ -1252,7 +1252,9 @@ void DL_Dxf::addVertex( DL_CreationInterface* creationInterface )
|
|||
DL_VertexData d( getRealValue( 10, 0.0 ),
|
||||
getRealValue( 20, 0.0 ),
|
||||
getRealValue( 30, 0.0 ),
|
||||
getRealValue( 42, 0.0 ) );
|
||||
getRealValue( 42, 0.0 ),
|
||||
getRealValue( 40, 0.0 ),
|
||||
getRealValue( 41, 0.0 ) );
|
||||
|
||||
creationInterface->addVertex( d );
|
||||
}
|
||||
|
|
|
@ -478,12 +478,14 @@ struct DXFLIB_EXPORT DL_VertexData
|
|||
* Parameters: see member variables.
|
||||
*/
|
||||
DL_VertexData( double px = 0.0, double py = 0.0, double pz = 0.0,
|
||||
double pBulge = 0.0 )
|
||||
double pBulge = 0.0, double pStartWidth = 0.0, double pEndWidth = 0.0 )
|
||||
{
|
||||
x = px;
|
||||
y = py;
|
||||
z = pz;
|
||||
bulge = pBulge;
|
||||
startWidth = pStartWidth;
|
||||
endWidth = pEndWidth;
|
||||
}
|
||||
|
||||
/*! X Coordinate of the vertex. */
|
||||
|
@ -498,6 +500,12 @@ struct DXFLIB_EXPORT DL_VertexData
|
|||
/*! Bulge of vertex.
|
||||
* (The tangent of 1/4 of the arc angle or 0 for lines) */
|
||||
double bulge;
|
||||
|
||||
/* start/end width attributes of the vertex. Allowed by the Autodesk specs (entity codes 40/41).
|
||||
* used by certain EDA tools to encode line widths */
|
||||
double startWidth;
|
||||
|
||||
double endWidth;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue