| 107 | } |
| 108 | |
| 109 | VertId PointCloud::addPoint(const Vector3f& point) |
| 110 | { |
| 111 | VertId id(points.size()); |
| 112 | points.push_back(point); |
| 113 | validPoints.autoResizeSet(id); |
| 114 | |
| 115 | if ( !normals.empty() ) |
| 116 | { |
| 117 | spdlog::warn( "Trying to add point without normal to oriented point cloud, adding empty normal" ); |
| 118 | normals.emplace_back(); |
| 119 | assert( normals.size() == points.size() ); |
| 120 | } |
| 121 | return id; |
| 122 | } |
| 123 | |
| 124 | VertId PointCloud::addPoint(const Vector3f& point, const Vector3f& normal) |
| 125 | { |
no test coverage detected