MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029988Community[OCCT] OCCT:Visualizationpublic2018-07-26 18:382018-07-27 06:40
ReporterVico Liang 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusfeedbackResolutionno change required 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0029988: AIS_Shape - SetWidth() and SetColor() has no effect for FaceBoundary
DescriptionColor and width of FaceBoundary without changes after calling SetWidth() and SetColor(). The expected result should be that the color and width changes.
TagsNo tags attached.
Test case number
Attached Filespng file icon Rhino_FaceBoundaryWithColor.png (561,228 bytes) 2018-07-27 06:20

- Relationships
related to 0027265newkgv Open CASCADE vaspects -setwidth does not modify free wire width 

-  Notes
(0078055)
kgv (developer)
2018-07-26 22:18

This is by design - FaceBoundary is not expected to be modified by SetWidth/SetColor methods.
SetWidth/SetColor are just convenient short-cuts applying some "standard" effect, but it is very difficult to define what is expected and what is not in case of such complex presentations like AIS_Shape consisting of many elements.
Therefore, application should not rely only on SetWidth/SetColor to do all the job - if result looks unexpected, application is expected to manage Prs3d_Drawer in desired way.

More comments from previous request:
- AIS_Shape::SetWidth() changes line aspects for lines-only presentation modes like Wireframe and Bounding Box.
- FaceBoundaryAspect is designed for Shaded mode and thus it is not desirable to mess up it with other line aspects.
(0078059)
Vico Liang (developer)
2018-07-27 06:13
edited on: 2018-07-27 06:40

We use TPrsStd_AISPresentation to manage the presentation of object, it's expected that SetWidth and SetColor changes FaceBoundary of AIS_Shape. in my opinion, FaceBoundary is line presentation and it should be considered. There are other software which will change the faceBondary line colors such as Rhino. I'd like to attach an image of Rhino.

(0078060)
Vico Liang (developer)
2018-07-27 06:37

I don't think FaceBoundaryAspect is an exception. The rules should be simple and clear. SetWidth() and SetColor() will change everything. if result looks unexpected, application is expected to manage Prs3d_Drawer in desired way.

- Issue History
Date Modified Username Field Change
2018-07-26 18:38 Vico Liang New Issue
2018-07-26 18:38 Vico Liang Assigned To => kgv
2018-07-26 18:39 Vico Liang Summary SetWidth() and SetColor() has no effect for FaceBoundary => AIS_Shape - SetWidth() and SetColor() has no effect for FaceBoundary
2018-07-26 22:12 kgv Relationship added related to 0027265
2018-07-26 22:12 kgv Relationship added duplicate of 0025932
2018-07-26 22:18 kgv Note Added: 0078055
2018-07-26 22:18 kgv Assigned To kgv => Vico Liang
2018-07-26 22:18 kgv Status new => feedback
2018-07-26 22:18 kgv Resolution open => no change required
2018-07-27 06:13 Vico Liang Note Added: 0078059
2018-07-27 06:16 Vico Liang File Added: Rhino_FaceBoundaryWithColor.png
2018-07-27 06:16 Vico Liang Assigned To Vico Liang =>
2018-07-27 06:17 Vico Liang File Deleted: Rhino_FaceBoundaryWithColor.png
2018-07-27 06:19 Vico Liang File Added: Rhino_FaceBoundaryWithColor.png
2018-07-27 06:19 Vico Liang File Deleted: Rhino_FaceBoundaryWithColor.png
2018-07-27 06:20 Vico Liang File Added: Rhino_FaceBoundaryWithColor.png
2018-07-27 06:21 Vico Liang Assigned To => kgv
2018-07-27 06:37 Vico Liang Note Added: 0078060
2018-07-27 06:40 Vico Liang Note Edited: 0078059 View Revisions


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker