在Open-GL中绘制静态点云是否可行
glBegin(GL_POINTS);
for(float x = -1; x < 1; x += 0.1)
{
for(float y = -1; y < 1; y += 0.1)
{
for(float z = -1; z < 1; z += 0.1)
{
float d = 1-sqrt((x * x) + (y * y) + (z * z));
glColor3f(d, d, d);
glVertex3f
这在我的本地部署中很好,但在云部署上却不起作用。
with open(file_path, "wb+") as fp:
for chunk in file:
fp.write(chunk)
result = upload.delay(name, file_path)
在另一个文件中:
@shared_task
def upload(name, file_path):
path = Path(path_tmp)
if os.path.isfile(path):
do something
错误是
非路径/mediafile