Creato con Colab
This commit is contained in:
+3
-3
@@ -794,7 +794,7 @@
|
||||
"source": [
|
||||
"#@title Local Rotation\n",
|
||||
"rx=0#@param {\"type\" : \"number\"}\n",
|
||||
"ry=15#@param {\"type\" : \"number\"}\n",
|
||||
"ry=-35#@param {\"type\" : \"number\"}\n",
|
||||
"rz=0#@param {\"type\" : \"number\"}\n",
|
||||
"\n",
|
||||
"mx, Mx, my, My, mz, Mz = points[:,0].min(), points[:,0].max(), points[:,1].min(), points[:,1].max(), points[:,2].min(), points[:,2].max()\n",
|
||||
@@ -836,7 +836,7 @@
|
||||
"#@title Scale\n",
|
||||
"sx=1#@param {\"type\" : \"number\"}\n",
|
||||
"sy=1#@param {\"type\" : \"number\"}\n",
|
||||
"sz=1.15#@param {\"type\" : \"number\"}\n",
|
||||
"sz=0.75#@param {\"type\" : \"number\"}\n",
|
||||
"\n",
|
||||
"points = transform_points(points, translate=(0,0,0), rotate=(0, 0, 0), scale=(sx,sy,sz))"
|
||||
],
|
||||
@@ -852,7 +852,7 @@
|
||||
"source": [
|
||||
"#@title Points interpolation\n",
|
||||
"interpolate = 2 #@param {\"type\":\"number\"}\n",
|
||||
"points = torch.from_numpy(interpolate_points(points.detach().cpu().numpy(), alpha=0.5, n_c=interpolate))"
|
||||
"points = (interpolate_points(points, alpha=0.5, n_c=interpolate))"
|
||||
],
|
||||
"metadata": {
|
||||
"cellView": "form",
|
||||
|
||||
Reference in New Issue
Block a user