Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
1ae04a22
Commit
1ae04a22
authored
Jan 18, 2017
by
Michael Krämer
Browse files
adding support for additional elements
parent
57bc372a
Pipeline
#4191
passed with stage
in 41 minutes and 40 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/reader/PLYReader.cc
View file @
1ae04a22
This diff is collapsed.
Click to expand it.
src/OpenMesh/Core/IO/reader/PLYReader.hh
View file @
1ae04a22
...
@@ -165,7 +165,6 @@ private:
...
@@ -165,7 +165,6 @@ private:
mutable
unsigned
int
vertexCount_
;
mutable
unsigned
int
vertexCount_
;
mutable
unsigned
int
faceCount_
;
mutable
unsigned
int
faceCount_
;
mutable
ValueType
vertexType_
;
mutable
uint
vertexDimension_
;
mutable
uint
vertexDimension_
;
enum
Property
{
enum
Property
{
...
@@ -190,8 +189,23 @@ private:
...
@@ -190,8 +189,23 @@ private:
PropertyInfo
(
Property
_p
,
ValueType
_v
)
:
property
(
_p
),
value
(
_v
),
name
(
""
),
listIndexType
(
Unsupported
){}
PropertyInfo
(
Property
_p
,
ValueType
_v
)
:
property
(
_p
),
value
(
_v
),
name
(
""
),
listIndexType
(
Unsupported
){}
PropertyInfo
(
Property
_p
,
ValueType
_v
,
const
std
::
string
&
_n
)
:
property
(
_p
),
value
(
_v
),
name
(
_n
),
listIndexType
(
Unsupported
){}
PropertyInfo
(
Property
_p
,
ValueType
_v
,
const
std
::
string
&
_n
)
:
property
(
_p
),
value
(
_v
),
name
(
_n
),
listIndexType
(
Unsupported
){}
};
};
mutable
std
::
vector
<
PropertyInfo
>
vertexProperties_
;
mutable
std
::
vector
<
PropertyInfo
>
faceProperties_
;
enum
Element
{
VERTEX
,
FACE
,
UNKNOWN
};
// Information on the elements
struct
ElementInfo
{
Element
element_
;
std
::
string
name_
;
unsigned
int
count_
;
std
::
vector
<
PropertyInfo
>
properties_
;
};
mutable
std
::
vector
<
ElementInfo
>
elements_
;
template
<
typename
T
>
template
<
typename
T
>
inline
void
read
(
_PLYReader_
::
ValueType
_type
,
std
::
istream
&
_in
,
T
&
_value
,
OpenMesh
::
GenProg
::
TrueType
/*_binary*/
)
const
inline
void
read
(
_PLYReader_
::
ValueType
_type
,
std
::
istream
&
_in
,
T
&
_value
,
OpenMesh
::
GenProg
::
TrueType
/*_binary*/
)
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment