Hi Dr.Protocol, I tried this on my own following everything you did here to ultimately make the donut/torus 3d object. However I'm stuck on this part. I keep getting an error when I run the circle script when it hits this function. Is there anywhere online I could find this code.
@@prot0form775 hello master, Its Not the Same guy But Same problem. My error Message is: „Index in Position 1 Exceeds array bounds. Index Must Not exceed 3“ I get this Where i write: „new_circle = rotationMatrix('x',180)*[x;y;z;]; For the 'x' and 180 degrees
@@yannis8599 ok so I will be referring to the code as it is in 10:51 1. make sure x, y, and z are just one row vectors, 1xNumberOfNodes. 2. inside the function, make sure each "rotation_matrix" for each dimension is a 3x3. - If any of these two conditions is not met, the matrix multiplication is not possible. 3. That message often appears when there is indexation, and that only appears during the plotting part (line 27). - The array "new_cirlce" is arranged in 3 columns, x-y-z respectively, and each row is one node. So to plot, make sure the indexes are properly declared. - If the arrays have the correct dimensions (like explained above), that line for plotting should work for every 3D figure. Hope this helps.
Thank you sir l have one question How to design a half hollow cylinder by using the cylindrical coordinates (x=r*cos , y=r*sin
Hi Dr.Protocol, I tried this on my own following everything you did here to ultimately make the donut/torus 3d object. However I'm stuck on this part. I keep getting an error when I run the circle script when it hits this function. Is there anywhere online I could find this code.
Hi, sorry for the very late response, are you still having this problem? can you share the error message?
@@prot0form775 hello master, Its Not the Same guy But Same problem.
My error Message is: „Index in Position 1 Exceeds array bounds. Index Must Not exceed 3“
I get this Where i write: „new_circle = rotationMatrix('x',180)*[x;y;z;];
For the 'x' and 180 degrees
@@yannis8599 ok so I will be referring to the code as it is in 10:51
1. make sure x, y, and z are just one row vectors, 1xNumberOfNodes.
2. inside the function, make sure each "rotation_matrix" for each dimension is a 3x3.
- If any of these two conditions is not met, the matrix multiplication is not possible.
3. That message often appears when there is indexation, and that only appears during the plotting part (line 27).
- The array "new_cirlce" is arranged in 3 columns, x-y-z respectively, and each row is one node. So to plot, make sure the indexes are properly declared.
- If the arrays have the correct dimensions (like explained above), that line for plotting should work for every 3D figure.
Hope this helps.