Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}| import pymel.core as pm | |
| ''' | |
| An Autodesk Maya PyMEL script that calculates a pole vector position | |
| based on 3 input PyNode objects. example: leg, knee, ankle bones. | |
| Chris Lesage [email protected] | |
| ''' | |
| def calculate_pole_vector(p1, p2, p3, poleDistance=1): | |
| """ |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>three.js webgl - modifier - Fast Quadric Mesh Simplification</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
| <style> | |
| body { | |
| font-family: Monospace; | |
| background-color: #f0f0f0; |
| // OcTree with Morton Order | |
| // based on http://marupeke296.com/COL_3D_No15_Octree.html | |
| // | |
| // +------+------+ | |
| // |\ 2 \ 3 \ | |
| // | +------+------+ | |
| // + |\ \ \ | |
| // |\| +------+------+ | |
| // | + | | | | |
| // +0|\| 6 | 7 | |