MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / addPoint

Method addPoint

source/MRMesh/MRPointCloud.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109VertId 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
124VertId PointCloud::addPoint(const Vector3f& point, const Vector3f& normal)
125{

Callers 1

mainFunction · 0.95

Calls 4

push_backMethod · 0.80
sizeMethod · 0.45
autoResizeSetMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected