実際のところ
import bpy
def point_cloud(ob_name, coords, edges=[], faces=[]):
"""Create point cloud object based on given coordinates and name.
Keyword arguments:
ob_name -- new object name
coords -- float triplets eg: [(-1.0, 1.0, 0.0), (-1.0, -1.0, 0.0)]
"""
me = bpy.data.meshes.new(ob_name + "Mesh")
ob = bpy.data.objects.new(ob_name, me)
me.from_pydata(coords, edges, faces)
me.update()
return ob
pc1 = point_cloud("point-cloud", [(0.0, 0.0, 0.0)])
pc2 = point_cloud("Your Point", [(1.0, 1.0, 0.0)])
bpy.context.collection.objects.link(pc1)
bpy.context.collection.objects.link(pc2)