Transformation of several features: incorrect behaviour.

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Fat-Zer
Posts: 176
Joined: Thu Oct 30, 2014 10:38 pm

Transformation of several features: incorrect behaviour.

Post by Fat-Zer »

If several features are selected for a transformation the result is based on the first of them which produces unexpected result: (see attachment) the Pad001 and Pocket were selected for Multitransform and the result hasn't a pocket in the original place.

Code: Select all

72 App::DocumentObject* Transformed::getSupportObject() const
73 {
74     if (!Originals.getValues().empty())
75         return Originals.getValues().front();
76     else
77         return NULL;
78 }
...
113 App::DocumentObjectExecReturn *Transformed::execute(void)
114 {
...
138     // TODO: Currently, the support is simply the first Original. Change this to the Body feature later
139     Part::Feature* supportFeature = static_cast<Part::Feature*>(getSupportObject());
... 
}
Isn't here support supposed to be _last_ object rather than first? Is there any usecase where usage of the first original as the support is the desired behavior?

===
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5235 (Git)
Build type: Release
Branch: master
Hash: 6b3d7b17a749e03bcbf2cf79bbbb903137298c44
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 3.1.3
OCC version: 6.8.0
Attachments
multitransform-testcase.fcstd
(16.33 KiB) Downloaded 86 times
rufflivin
Posts: 3
Joined: Mon Mar 14, 2016 9:31 am
Contact:

Re: Transformation of several features: incorrect behaviour.

Post by rufflivin »

thanks for the attached file, me and one of my friend is also working on same kind of project
Post Reply