This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int np = nearpoint(1, @P); | |
| s@name = concat("piece_", itoa(np)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.*; | |
| ArrayList<Point> points = new ArrayList<Point>(); | |
| ArrayList<Point> active_list = new ArrayList<Point>(); | |
| int WINDOW = 400; | |
| float radius = 10; | |
| int size = 200; | |
| int rejection = 3; | |
| int size_ratio = WINDOW / size; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import maya.api.OpenMaya as OpenMaya | |
| mesh = OpenMaya.MFnMesh() | |
| # Simple unitCube coordinates | |
| vertices = [] | |
| vertices.append(OpenMaya.MPoint( 1, 1, 1)) # 0 | |
| vertices.append(OpenMaya.MPoint( 1, -1, 1)) # 1 | |
| vertices.append(OpenMaya.MPoint( 1, -1, -1)) # 2 |