View Issue Details

IDProjectCategoryView StatusLast Update
0003790PathBugpublic2021-02-06 06:33
Reportersleeply4cat Assigned Toshaiseger  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04, 18.04
Product Version0.18 
Target Version0.20 
Summary0003790: Volumetric milling simulation of arcs creating artifacts
DescriptionThe volumetric simulation of gear-like objects is pretty inaccurate:

Looks like it caused by a defect of the arc's end cup: its angular size two times smaller than it should be.
Steps To Reproduce1. create path contains a gear (or any non-smooth path with "left" turn like this), test project is attached
2. start a simulation
Additional InformationOS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15694 (Git)
Build type: Release
Branch: master
Hash: 96dee91d5e7d7fd37f43a4dcf406a120ae1f1b8a
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)



These changes can correct the situation, but I have paws..

--- a/src/Mod/Path/PathSimulator/App/VolSim.cpp
+++ b/src/Mod/Path/PathSimulator/App/VolSim.cpp
@@ -638,7 +638,7 @@ void cStock::ApplyCircularTool(Point3D & p1, Point3D & p2, Point3D & cent, cSimT
     {
         Point3D cupCirc(xynorm.x * r, xynorm.y * r, 0);
         float rotang = (float)SIM_WALK_RES / r;
-		int ndivs = (int)(3.1415926535 / rotang) + 1;
+		int ndivs = (int)(2 * 3.1415926535 / rotang) + 1;
         if (!isCCW)
             rotang = -rotang;
         cupCirc.SetRotationAngleRad(rotang);
Tags#post-to-forum, Path
FreeCAD Information

Activities

sleeply4cat

2019-01-24 10:35

reporter  

test.FCStd (143,104 bytes)

Kunda1

2019-01-25 17:09

administrator   ~0012507

deferring to mlampert

mlampert

2019-01-25 23:25

developer   ~0012520

I'm not familiar with the simulation framework in path. I believe shaise would be the best person to look at this.

Kunda1

2019-01-25 23:26

administrator   ~0012521

Assigning to @shaiseger

Kunda1

2019-01-25 23:29

administrator   ~0012522

Last edited: 2019-01-25 23:29

@sleeply4cat can you do us a favor and please post first to the forum to discuss? The bugtracker doesn't get as much traffic as the forum. This is obvious from the lack of activity on 0003714

Kunda1

2020-01-08 18:19

administrator   ~0014020

@shaiseger ping

yorik

2022-03-03 13:55

administrator   ~0016704

This ticket has been migrated to GitHub as issue 5869.

Issue History

Date Modified Username Field Change
2019-01-24 10:35 sleeply4cat New Issue
2019-01-24 10:35 sleeply4cat Tag Attached: Path
2019-01-24 10:35 sleeply4cat File Added: test.FCStd
2019-01-25 17:09 Kunda1 Assigned To => mlampert
2019-01-25 17:09 Kunda1 Status new => assigned
2019-01-25 17:09 Kunda1 Note Added: 0012507
2019-01-25 23:23 mlampert Assigned To mlampert =>
2019-01-25 23:25 mlampert Assigned To => mlampert
2019-01-25 23:25 mlampert Status assigned => new
2019-01-25 23:25 mlampert Note Added: 0012520
2019-01-25 23:25 mlampert Assigned To mlampert =>
2019-01-25 23:26 Kunda1 Assigned To => shaiseger
2019-01-25 23:26 Kunda1 Status new => assigned
2019-01-25 23:26 Kunda1 Note Added: 0012521
2019-01-25 23:29 Kunda1 Note Added: 0012522
2019-01-25 23:29 Kunda1 Note Edited: 0012522
2020-01-08 18:19 Kunda1 Tag Attached: #post-to-forum
2020-01-08 18:19 Kunda1 Note Added: 0014020
2021-02-06 06:33 abdullah Target Version => 0.20