MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030225Open CASCADE[OCCT] PRODUCTS:Point Cloud Renderingpublic2018-10-09 18:512018-10-11 11:58
Reportergka 
Assigned Togka 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.3.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0030225: Point Cloud Rendering - Colors of the points are not read from ply file
DescriptionColors of the points are not read from ply file for case when names of properties defining colors are specified as "diffuse_red", "diffuse_green", "diffuse_blue".
TagsNo tags attached.
Test case number
Attached Files

- Relationships

-  Notes
(0079856)
kgv (developer)
2018-10-10 16:03
edited on: 2018-10-10 16:03

+    TCollection_AsciiString aPropName(aPropNameRaw);
+
+    Standard_Integer indColor = (aPropName.Search("red") >= 0 ? 0 : (aPropName.Search("green") 
>= 0 ? 1 :
+      aPropName.Search("blue") >=0 ? 2 : -1));

I don't see a rationale for complicating code by looking for arbitrary properties with "red", "blue" and "green" in their name.

In practice, only two schemes are used for storing per-node color
(apart from awkward texture mapping) in PLY:
- "red", "green", "blue", "alpha"
- "diffuse_red", "diffuse_green", "diffuse_blue", "diffuse_alpha"


- Issue History
Date Modified Username Field Change
2018-10-09 18:51 gka New Issue
2018-10-09 18:51 gka Assigned To => gka
2018-10-09 18:51 gka Description Updated View Revisions
2018-10-10 15:56 kgv Summary Colors of the points are not read from ply file. => Point Cloud Rendering - Colors of the points are not read from ply file
2018-10-10 16:03 kgv Note Added: 0079856
2018-10-10 16:03 kgv Note Edited: 0079856 View Revisions
2018-10-10 16:03 kgv Note Edited: 0079856 View Revisions


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker