Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
[2021/10/24]
Browse files Browse the repository at this point in the history
* The internal blocks that start with "*U" or "*T" can be safely renamed. They are internally created to represent dynamic blocks, arrays, and tables; although the information of those objects is lost when importing the DXF, the block that represent its graphical appearance is imported.
* PolyfaceMesh vertexes are now a list of Vector3. The additional information that the DXF requires will be generated when the file is saved.
* Deleted the PolyfaceMeshVertex class, there is no use for it anymore.
* PolyfaceMeshFace does not inherit from DxfObject anymore..  The additional information that the DXF requires will be generated when the file is saved.
* PolyfaceMeshFace can have its own Layer and/or Color. By default they are set to null to inherit from its parent PolyfaceMesh.
* Polyline vertexes are now a list of Vector3. The additional information that the DXF requires will be generated when the file is saved.
* Deleted the PolylineVertex class, there is no use for it anymore.
* Added a new method ToLwPolyline to the Polyline and Spline class. It returns a LwPolyline(2d polyline) that is the result of projecting the entity into the plane defined by its normal.
* Added a BezierCurveQuadratic class that represents a second degree bezier curve.
* Added a BezierCurveCubic class that represents a third degree bezier curve.
* Added a constructor to the Spline class that will initialize a nurbs curve from a set of quadratic or cubic bezier curves.
* Added the SPLINESEGS as a header variable. It is used as the a base value for the precision when the additional vertexes for SplineFit Polylines are generated. For open polylines the Precision = SplineSegs * (Number of Vertices - 1), for closed ones Precision = SplineSegs * Number of Vertices.
* Implemented the SmoothType property of the Polyline class to smooth out polylines as quadratic or cubic B-Splines, althought is recommended to use a Spline entity in these cases.
* Smoothed Polylines by CurveFit will be imported as LwPolylines.
* The Spline constructor that takes a set of fit points will also generate the control points so it can be fully utilized. It creates a list of cubic bezier curves that passes through the fit points, and with the resulting curves the spline will be initialized.
* The Spline properties IsClosed and IsClosedAndPeriodic (renamed form IsPeriodic) can now be changed.
* The Spline knot vector values can now be changed.
* (fixed) Workaround for multiline styles with no name in bad formated DXF files.
* (fixed) The precision argument of the Arc.PolygonalVertexes method represents the number of vertexes genarated not the number of division, as it is the case of similar methods of other entities.
  • Loading branch information
haplokuon committed Oct 24, 2021
1 parent 06e4a3f commit 3bf0251
Show file tree
Hide file tree
Showing 257 changed files with 6,693 additions and 4,559 deletions.
36 changes: 18 additions & 18 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
MIT License

netDxf library
Copyright (c) 2019-2021 Daniel Carvajal (haplokuon@gmail.com)

MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Copyright (c) 2021 Daniel Carvajal
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 3bf0251

Please sign in to comment.