Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"Vertex") to mesh geometrical points.
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.