realthunder / FreeCAD

Link branch FreeCAD
Other
763 stars 45 forks source link

PolarPattern [Problem] #938

Open jpg87Fr opened 7 months ago

jpg87Fr commented 7 months ago

Is there an existing issue for this?

Version

0.21 (Development)

Full version info

[code]
OS: Windows 10 build 19043
Word size of FreeCAD: 64-bit
Version: 2024.101.0.14555 (Git shallow)
Build type: Release
Branch: HEAD
Hash: 7471b6a2720ee4973b9477a55713070b056c42e8
Python 3.11.7, Qt 5.15.6, Coin 4.0.1, Vtk 9.2.5, OCC 7.7.2
Locale: French/France (fr_FR)
Installed mods: 
  * Assembly3 0.12.0
  * Assembly4 0.50.6
  * DynamicData 2.60.0
  * fasteners 0.5.0
  * freecad.gears 1.0.0
[/code]
and
[code]
OS: Windows 10 build 19043
Word size of FreeCAD: 64-bit
Version: 2024.113.0.14555 (Git shallow)
Build type: Release
Branch: HEAD
Hash: 4235ee9c92d9822b434ec2bc8da7cee729fd9f3b
Python 3.11.7, Qt 5.15.6, Coin 4.0.1, Vtk 9.2.5, OCC 7.7.2
Locale: French/France (fr_FR)
Installed mods: 
  * Assembly3 0.12.0
  * Assembly4 0.50.6
  * DynamicData 2.60.0
  * fasteners 0.5.0
  * freecad.gears 1.0.0
[/code]

Subproject(s) affected?

PartDesign

Problem description

Hello @realthunder, I just discovered a small problem: The PolarPattern002 function worked without problem the first time, then after modifying a dimension in Sketch007 of Pocket001, strange things happened. I deleted then recreated PolarPattern002, but I only have 2 copies on the screen instead of 4! Same problem in version Tip 20240101 and Stable 20240113. Image1 derrick LS3jpg87.ZIP

Anything else?

No response

Code of Conduct

realthunder commented 7 months ago

This is due the way Pattern features orders multiple sub feature transformation. As can be seen from the picture below, cyan shapes are additive, red ones are subtractive, and obviously all cyan shapes are covered by red ones, hence all cut away.

image

There are a few ways to fix this problem. The simplest one is to turn off Transform sub-feature option. You don't need to select any sub feature. The default behavior (when no sub-features are selected) is to use entire current Tip shape as base for pattern.

image

In case the shape you want can only be achieved by sub-feature transformation, you need to limit the pocketing shape to make it not overlap with others. The Through all option is not well implemented at the moment. It simply use an arbitrary large length value. You can either use Up to face, or manually set a smaller length.

image

jpg87Fr commented 7 months ago

Thank you very much