Yorik van Havre
c99ec69f9c
Merge branch 'alafr-arch-structure' of https://github.com/alafr/FreeCAD
2021-09-02 14:36:43 +02:00
Yorik van Havre
c167955018
Merge pull request #4885 from Roy-043/Draft_Fix_Array_Count_Issues
...
Draft: Fix Draft_PointArray and Draft_TwistedArray Count problems
2021-08-17 15:19:57 +02:00
alafr
6e7bea99d0
Merge branch 'master' into alafr-arch-structure
2021-08-06 21:55:02 +02:00
Roy-043
ed94be6ab9
Draft: fix geometry.py findDistance function
...
The findDistance function did not work properly for arcs that crossed the 9 o'clock point.
2021-07-31 09:56:25 +02:00
Yorik van Havre
8d5544ee3c
Draft: disconsider unknown edge types in geo utils
2021-07-07 15:43:55 +02:00
Roy-043
32953590df
Draft: Fix Draft_PointArray and Draft_TwistedArray Count problems
...
Draft_PointArray and Draft_TwistedArray have Count problems:
1. Draft_PointArray: Count is always zero.
2. Draft_PathTwistedArray: Number of items is Count+1.
3. Draft_PathTwistedLinkArray: Count is increased whenever object is recomputed.
Also the first item in a twisted array should be unrotated.
2021-06-23 11:06:47 +02:00
Roy-043
df5c24bc63
Draft: Fix offsets.py problem with direction if precision=6
...
The direction of the offset could be faulty if Draft precision=6. Since we are only interested in the side the pointer is on, working with a high precision does not make sense.
2021-06-15 17:37:21 +02:00
marioalexis
a6ef3e656b
Draft: Check null shape in geometry.py functions
2021-06-06 21:30:20 -03:00
Yorik van Havre
49c71cb0b3
Merge branch 'master' into alafr-arch-structure
2021-03-26 11:08:01 +01:00
Amritpal Singh
d9e7ee46e6
Draft: Fix bug in getCubicDimensions function
2021-02-04 22:57:31 +05:30
luz paz
ccbc13ee82
Draft: fix LGTM 'Testing for None should use the 'is' operator' alerrts
...
https://lgtm.com/projects/g/FreeCAD/FreeCAD/alerts/?mode=tree&ruleFocus=7900090
2021-02-03 21:58:47 +01:00
marioalexis
8e080f1dac
Draft: Some fixes in upgrade function. bug #0004460 , fixes #0004462 , #0004080
2020-11-24 22:08:06 -03:00
alafr
d4b65cffff
Draft: Conform to vocx-fc's review
...
- check for Part.Shape as it was before, to avoid any risk of breaking other tools
- change the order of Draft tests
2020-10-31 14:17:21 +01:00
alafr
8a17342b69
DraftGeomUtils: formatting
...
Restore a change from commit #add4897 that i accidentally deleted during conflict resolution
2020-10-31 14:17:16 +01:00
alafr
afd644fd72
DraftGeomUtils: import FreeCAD as App
2020-10-31 14:17:13 +01:00
alafr
d310986cd8
Fix missing import
2020-10-31 14:17:10 +01:00
alafr
942b4748fc
DraftGeomUtils: Doctstring formatting
...
Adress vocx-fc's review
2020-10-31 14:17:07 +01:00
alafr
c1cf0c0f8b
Draft: Add geometry functions for Arch Structure
...
* get_referenced_edges(property_value): returns the Edges referenced by the value of a App:PropertyLink, App::PropertyLinkSub or App::PropertyLinkSubList property.
* get_placement_perpendicular_to_wire(wire): returns the placement whose base is the wire's first vertex and it's z axis aligned to the wire's tangent.
* get_extended_wire(wire, offset_start, offset_end): returns a wire trimmed (negative offset) or extended (positive offset) at its first vertex, last vertex or both ends. For example:
get_extended_wire(wire, -100.0, 0.0) -> returns a copy of the wire with its first 100 mm removed
get_extended_wire(wire, 0.0, 100.0) -> returns a copy of the wire extended by 100 mm after it's last vertex
2020-10-31 14:16:50 +01:00
marioalexis
318312be75
Draft: Fix logical error in is_line function
2020-10-22 17:14:46 +02:00
luz paz
33caa1ec30
Fix various typos
...
Found via `codespell v2.0.dev`
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-10-21 16:20:08 +02:00
Yorik van Havre
87eae7c58c
Arch: Enabled ellipse-based walls - fixes #3859
2020-10-20 13:13:54 +02:00
marioalexis
aa88f3ded0
Improve make_sketch and geometric related functions
2020-10-19 13:15:14 +02:00
vocx-fc
e477283ffc
Draft: new PathTwistedArray object
...
It takes a `Shape` and replicates it around a path, while at the
same time adding a rotation to each copy. This can be used to create
a twisted "ribcage" from a frame-like object, which can be used
in a more complicated `Shape`, for example, a tunnel or bridge
object.
2020-09-03 12:34:16 +02:00
paul lee
102cfb4a71
[Draft - geotuils.offsets] Fix To Work with Sketch
...
Forum Discussion - https://forum.freecadweb.org/viewtopic.php?f=23&t=48852&p=419209#p419209
2020-08-11 11:10:42 +02:00
paul lee
7a41078624
[Draft - geoutils.offsets] Fix Circle and Arc Offset Direction
...
Forum Discussion - https://forum.freecadweb.org/viewtopic.php?f=23&t=48852#p418903
2020-08-11 11:10:42 +02:00
vocx-fc
b434761e35
Draft: add modules of draftgeoutils to the proper Doxygen group
...
This includes `arcs`, `circle_inversion`, `circles`, `circles_apollonius`,
`circles_incomplete`, `cuboids`, `edges`, `faces`, `fillets`,
`general`, `geometry`, `intersections`, `linear_geometry`,
`offsets`, `sort_edges`, `wires`.
These are added to the `draftgeoutils` Doxygen group so that
the functions contained in each module are listed appropriately
in the automatically generated documentation.
2020-07-17 13:01:45 +02:00
vocx-fc
91a23e4a40
Draft: add Doxygen strings to the packages' __init__ files
...
The packages are `draftfunctions`, `draftgeoutils`, `draftguitools`,
`draftmake`, `draftobjects`, `drafttaskpanels`, `drafttests`,
`draftutils`, `draftviewproviders`.
2020-07-17 13:01:45 +02:00
paul lee
81dd47b039
[ArchWall] ArchWall Offset should now works with Base as Sketch
2020-06-24 11:29:07 +02:00
luz.paz
720b0b96d0
Fix typos [skip ci]
...
Found via codespell v1.18.0.dev0
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-06-15 10:11:22 +02:00
vocx-fc
c8c579b0d5
Draft: clean up draftgeoutil modules
2020-06-09 11:51:17 +02:00
vocx-fc
7597dd0564
Draft: move more functions to draftgeoutils.general
2020-06-05 13:15:31 +02:00
vocx-fc
3bdd1310b3
Draft: move functions to draftgeoutils.circles_incomplete
2020-06-05 13:15:31 +02:00
vocx-fc
3476c73b3b
Draft: move functions to draftgeoutils.circle_inversion
2020-06-05 13:15:31 +02:00
vocx-fc
0ba43a993e
Draft: move functions to draftgeoutils.circles_apollonius
2020-06-05 13:15:31 +02:00
vocx-fc
627e665c5d
Draft: move more functions to draftgeoutils.circles, part 2
2020-06-05 13:15:31 +02:00
vocx-fc
6ec6fb2ca1
Draft: move functions to draftgeoutils.circles, part 1
2020-06-05 13:15:31 +02:00
vocx-fc
7eee6ae4f6
Draft: move more functions to draftgeoutils.arcs
2020-06-05 13:15:31 +02:00
vocx-fc
54e9ad9d41
Draft: move functions to draftgeoutils.cuboids
2020-06-03 15:22:09 +02:00
vocx-fc
7791ebe897
Draft: move more functions to draftgeoutils.faces
2020-06-03 15:22:09 +02:00
vocx-fc
f740fde964
Draft: move more functions to draftgeoutils.intersections
2020-06-03 15:22:09 +02:00
vocx-fc
7b3052fd76
Draft: move more functions to draftgeoutils.geometry
2020-06-03 15:22:09 +02:00
vocx-fc
85321f28da
Draft: move more functions to draftgeoutils.wires
2020-06-03 15:22:09 +02:00
vocx-fc
66bc105979
Draft: move more functions to draftgeoutils.edges
2020-06-03 15:22:09 +02:00
vocx-fc
b77d477476
Draft: move more functions to draftgeoutils.general
2020-06-03 15:22:09 +02:00
vocx-fc
ce0a4db598
Draft: move functions to draftgeoutils.linear_algebra
2020-05-29 13:31:28 +02:00
vocx-fc
7a764fb672
Draft: move functions to draftgeoutils.offsets
2020-05-29 13:31:28 +02:00
vocx-fc
65bd869b27
Draft: move functions to draftgeoutils.fillets
2020-05-29 13:31:28 +02:00
vocx-fc
0e862cfa9d
Draft: move functions to draftgeoutils.arcs
2020-05-29 13:31:28 +02:00
vocx-fc
e7b586ead1
Draft: move functions to draftgeoutils.wires
2020-05-29 13:31:28 +02:00
vocx-fc
035a63c68b
Draft: move functions to draftgeoutils.geometry
2020-05-25 13:35:34 +02:00