Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Point") to mesh geometry vertices.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the point selection. If you do not specify any selection the feature creates a mesh on the remaining points.