Voxelisation - 2nd Prototype
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Voxelisation - 1st Prototype
Further Developed Prototype tested and performance reported in - https://forum.freecadweb.org/viewtopic. ... 55#p532055
Re: Voxelisation - 2nd Prototype
Voxelisation in FreeCAD - Test 3 : 3 Voxel Modes
Current workflow for comment / suggestion: -
1. Select the shape object to 'voxelise', click Voxel button
2. Can select the shape of voxel, like (App::Link to) a Group w/ 4 Walls, Windows, Slab etc.
3. Has 3 modes :-
SketchArch WB / Python Updated
Current workflow for comment / suggestion: -
1. Select the shape object to 'voxelise', click Voxel button
2. Can select the shape of voxel, like (App::Link to) a Group w/ 4 Walls, Windows, Slab etc.
3. Has 3 modes :-
- Center : If Center of (the BoundBox of) voxel is within the Input Shape, it is shown
- Any Corner : If Any Corner of (the BoundBox of) voxel is within the Input Shape, it is shown
- All Corners : Only if All Corners of (the BoundBox of) voxel are within the Input Shape, it is shown
SketchArch WB / Python Updated
- SketchArch WB in https://github.com/paullee0/FreeCAD_SketchArch
- Or simply replace below 2 files
- Add below button image to ../icons directory
Re: Voxelisation - 2nd Prototype
3 Modes:
- 1. Center
- 2. Any Corner
- 3. All Corners
- 1. Center
- 2. Any Corner
- 3. All Corners
Re: Voxelisation - 2nd Prototype
Forgot to explain -
- Under the hood, pressing the button creates 2 objects
- First is a 'VoxelPart' object with a propertyLink to an 'Input Shape Object'
- Second is an App::Link which produce the Array of Voxels
- The VoxelPart calculates the placement of every Voxels
- It creates a Box, or copy the shape of 'VoxelObj' (usecase: point to a object with Shape, or to a Link to a Group containing a numbers of objects)
- The 2nd Object App::Link actually create the array of Voxels according to VoxelPart calculation