View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0023112 | Community | OCCT:Application Framework | public | 2012-04-16 16:39 | 2012-11-16 14:52 |
| Reporter | Pawel | Assigned To | |||
| Priority | normal | Severity | integration request | ||
| Status | closed | Resolution | no change required | ||
| Platform | Windows | OS | VC++ 2005 | ||
| Product Version | 6.5.3 | ||||
| Target Version | 6.5.4 | Fixed in Version | 6.5.4 | ||
| Summary | 0023112: TNaming_NamedShape with TNaming_REPLACE status | ||||
| Description | This suggestion is based on: http://www.opencascade.org/org/forum/thread_20745/?forum=3 I have noticed that copying labels having TNaming_NamedShape attribute with TNaming_REPLACE evolution attached fails. Although the Forum Supervisor cleared it was not recommended to use TNaming_REPLACE evolution I still think it is feasible to handle that evolution type while copying labels (after all this is a member of TNaming_Evolution so why shouldn't it be handled). | ||||
| Steps To Reproduce | TDF_Label target; // has TNaming_NamedShape/TNaming_Evolution (TNaming_REPLACE) attribute TDF_Label source; TDocStd_XLinkTool xlinktool; xlinktool.Copy(target,source); | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
Corresponding branch (CR23112) has been pushed to the git repository. |
|
|
Dear Pawel, I would like to confirm that at the moment TNaming_REPLACE evolution is not supported by OCCT at all. More over there is no clear and consistent definition as the specified evolution itself as the expected behavior of supporting naming mechanism till now. You can consider it as a started, but not completed draft of corresponding R&D work, which unfortunately was not removed from integration queue in time. It is our mistake and I hope we will remove this ambiguity at the nearest feature. The made by your patch nothing changes because it introduces 'dead' evolution only without any support. You may use for the same purpose evolution MODIFY. I hope it will cover all your needs. Regards |
|
|
Yes, you are right. I understand your reasoning and do not insist on integrating it to the distribution. However, I work on a project for that we have to support legacy data. And the legacy data uses (for some reason) the TNaming_REPLACE (coming from the use of TNaming_Builder::Replace) so it was necessary for me to find a way to handle the case. |
|
|
So, to be clear between us. At the moment there is only one consistent and feasible solution: removing REPLACE evolution from the code. All your cases can be supported by evolution MODIFY. Another issue is how to support portability of document data mentioned by you above. I guess that REPLACE evolution was used in your application just to identify the fact that some shape (initially created with PRIMITIVE evolution) was modified during its life cycle. I.e. resolving of this kind of shape by OCAF after any modification was not expected. In such case you may easy to solve this problem by replacing of all attributes (NamedShape) with evolution REPLACE by attributes with evolution MODIFY. It can be don or by developing a standalone Convertor or by developing an alternative driver of NamedShape to process persistent document during its opening. If you will meet any difficulties, you may contact us via the Contact Form http://www.opencascade.org/about/contacts/. I hope we will find a way and a solution to help you. |
|
|
REPLACE evolution is removed. MODIFY evolution can be used instead of REPLACE. Persistence compatibility is added by patch CR23205. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-04-16 16:39 | Pawel | New Issue | |
| 2012-04-16 16:39 | Pawel | Assigned To | => Pawel |
| 2012-04-16 16:52 | Pawel | Note Added: 0020398 | |
| 2012-04-16 16:52 | Pawel | Assigned To | Pawel => bugmaster |
| 2012-04-16 16:52 | Pawel | Status | new => resolved |
| 2012-04-16 17:13 |
|
Assigned To | bugmaster => szy |
| 2012-04-20 19:26 |
|
Note Added: 0020425 | |
| 2012-04-23 11:57 |
|
Assigned To | szy => Pawel |
| 2012-04-23 11:57 |
|
Status | resolved => assigned |
| 2012-04-23 11:57 |
|
Status | assigned => feedback |
| 2012-04-23 12:01 |
|
Note Edited: 0020425 | |
| 2012-04-25 12:39 | Pawel | Note Added: 0020444 | |
| 2012-04-25 12:39 | Pawel | Status | feedback => assigned |
| 2012-04-25 19:00 |
|
Note Added: 0020446 | |
| 2012-04-25 19:02 |
|
Note Edited: 0020446 | |
| 2012-09-03 09:17 |
|
Assigned To | Pawel => szy |
| 2012-09-06 16:50 |
|
Note Added: 0021426 | |
| 2012-09-06 16:50 |
|
Status | assigned => closed |
| 2012-09-06 16:50 |
|
Assigned To | szy => mkv |
| 2012-09-06 16:50 |
|
Resolution | open => no change required |
| 2012-11-16 14:52 |
|
Changeset attached | => occt master 1ec8a59e |
| 2012-11-16 14:52 |
|
Fixed in Version | => 6.5.4 |
| 2012-11-16 14:52 |
|
Target Version | 6.5.3 => 6.5.4 |