View Issue Details

IDProjectCategoryView StatusLast Update
0001253AssemblyBugpublic2015-02-03 16:15
Reporterproject4 Assigned Toickby  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionwon't fix 
Summary0001253: Coincident doesn't work after transform
DescriptionI'll add the model and 2 movies showing the problem.

The scenario is as follows:
Adding 2 objects from the same STP file.
Those obviously overlap each over, so I'm using the translate feature to move one of them.
After that the coincident doesn't work.

In second movie I've tried to use align before the coincident, align did work, coincident didn't (I thought I had success with it previously, but this time it didn't work, maybe I did something more to make it work).

When adding 2 models that do not overlap, so I can perform the coincident feature on them from the beginning, everything works fine, so I assume the translate breaks something...
Additional InformationUsing latest assembly branch.

OS: Ubuntu 13.04
Platform: 64-bit
Version: 0.14.2654 (Git)
Branch: jriegel/dev-assembly
Hash: 3d4dd4f64f24255dbaec25767cff7b74bb98fc6d
Python version: 2.7.4
Qt version: 4.8.4
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0
TagsNo tags attached.
FreeCAD Information

Activities

project4

2013-09-24 17:29

reporter   ~0003650

Grr... can't upload the movies, despite the fact that they are less than 5MBytes.
Can send by email if someone wants to see.

I'm sure you will be able to reproduce the problem with the STP file I've attached or any other file.

project4

2013-09-24 17:33

reporter   ~0003651

More info, I see in the console the following printout:
Solver failed with error 3: step size below limit

ickby

2013-09-24 17:45

developer   ~0003652

Can you please upload the video on a filehoster and share a link?
I can't reproduce the problem.

project4

2013-09-24 18:43

reporter   ~0003655

Video 1:
http://www.datafilehost.com/d/4b818830

Video 2:
http://www.datafilehost.com/d/5729b47e

project4

2013-09-25 13:41

reporter   ~0003666

More info after playing with that a bit more.

When 2 model's normals are facing in exactly the same direction, the "opposite" coincident doesn't work.
If I help the application by rotating one of the models so the faces that have to connect will face to each other, it will work.

After I add 2 objects from the same STP file and translate it in space, the faces I want to connect point in exact the same direction, which creates the problem.

It looks like the solver have a problem to understand that it have to rotate the model exactly 180 degrees in one of the directions...

ickby

2013-09-26 14:28

developer   ~0003677

ah thanks for the vids. Actually while Investigating I found that I know this problem, but as it is a nasty mathematical issue I always postponed it. Maybe I have time tonight. Thanks for reporting!

project4

2013-09-26 15:00

reporter   ~0003678

Thanks.

Does the "solver failed" error crash something or it will continue to operate after the error?

ickby

2013-10-03 08:24

developer   ~0003711

fixed in the assembly branch of git@github.com:ickby/FreeCAD_constraint.git

project4

2013-10-03 08:45

reporter   ~0003712

Thanks!
Will try it later today.

project4

2013-10-18 17:52

reporter   ~0003766

I've tried it on your latest version and there is still a problem...
The operation rotates the objects in the needed direction, but later operations on the object doesn't work as expected, looks like the constraint is not applied after that.

Try to add 2 rectangular shapes, move one aside without rotating it, collide the top faces of the rectangles, it will rotate as expected.
Now try to align 2 other faces so the rectangular shapes will sit on each other in proper direction... here the problem starts...

I'll try to record a video with an example later...

yorik

2013-11-04 13:21

administrator  

cube.step (29,865 bytes)

ickby

2015-02-03 16:15

developer   ~0005763

depricated code

Issue History

Date Modified Username Field Change
2013-09-24 17:23 project4 New Issue
2013-09-24 17:23 project4 File Added: cube.step
2013-09-24 17:29 project4 Note Added: 0003650
2013-09-24 17:33 project4 Note Added: 0003651
2013-09-24 17:45 ickby Note Added: 0003652
2013-09-24 18:43 project4 Note Added: 0003655
2013-09-25 13:41 project4 Note Added: 0003666
2013-09-26 14:28 ickby Note Added: 0003677
2013-09-26 15:00 project4 Note Added: 0003678
2013-10-03 08:24 ickby Note Added: 0003711
2013-10-03 08:45 project4 Note Added: 0003712
2013-10-18 17:52 project4 Note Added: 0003766
2013-11-04 13:21 yorik File Deleted: cube.step
2013-11-04 13:21 yorik File Added: cube.step
2015-02-03 16:15 ickby Note Added: 0005763
2015-02-03 16:15 ickby Status new => closed
2015-02-03 16:15 ickby Assigned To => ickby
2015-02-03 16:15 ickby Resolution open => won't fix