When meshing a 2D domain, an internal line can created by setting both the left and right domain of the line to the domain it is inside. The mesh will then generate as conformal with this line. I'd like to do something similar with an internal point, so the mesh is generated such that there is a point at a specified position. For example:

Unfortunately, I cannot see any way to do this. Please let me know if I've missed something and there is some way to do this currently.
Otherwise, I've made some modifications to the code which I believe enable the desired behaviour. In genmesh2d.cpp in the function void MeshFromSpline2D I've added the following
for (PointIndex pi : forced_points_by_domain[domnr])
{
if (compress[pi] == -1)
{
MultiPointGeomInfo mgi;
mgi.Init();
mgi.AddPointGeomInfo(gi);
meshing.AddPoint((*mesh)[pi], pi, &mgi, true);
cnt++;
compress[pi] = cnt;
}
}
This goes inside the domain meshing loop after the points associated with the boundary/internal segments are added. I've done a few basic tests with this and it appears to be working. However I am unsure about if this guarantees an internal point is generated at the desired position and what other unintended consequence this may have. Is this a valid approach? Or is there some better way to tackle this problem?
When meshing a 2D domain, an internal line can created by setting both the left and right domain of the line to the domain it is inside. The mesh will then generate as conformal with this line. I'd like to do something similar with an internal point, so the mesh is generated such that there is a point at a specified position. For example:

Unfortunately, I cannot see any way to do this. Please let me know if I've missed something and there is some way to do this currently.
Otherwise, I've made some modifications to the code which I believe enable the desired behaviour. In
genmesh2d.cppin the functionvoid MeshFromSpline2DI've added the followingThis goes inside the domain meshing loop after the points associated with the boundary/internal segments are added. I've done a few basic tests with this and it appears to be working. However I am unsure about if this guarantees an internal point is generated at the desired position and what other unintended consequence this may have. Is this a valid approach? Or is there some better way to tackle this problem?