217 Commits

Author SHA1 Message Date
Michael L Smith
718398e607 Replaced automatic image resize code with override parameters that will (optionally) maintain aspect ratio 2016-11-13 14:44:47 -08:00
Michael L Smith
af3459e123 Added an auto-resize if an image is over 150 pixels wide or high. 2016-11-07 20:59:07 -08:00
Michael Smith
b48d57cf39 Added a couple new constructors and updated comments on new box / cube classes. 2016-11-01 20:39:01 -07:00
Michael L Smith
c7a992cb6d Corrected traversal issue introduced when I converted the processing algorithm to an iterative version. 2016-10-31 18:45:34 -07:00
Michael L Smith
57a653f326 Refactored recursive image processing code to be iterative. 2016-10-30 15:44:29 -07:00
Michael Smith
3697647e4a Removed all support for bindings **Massive shift in direction**. They have been removed to clear the path for supporting more robust time-saving functionality, such as compound objects like premade containers and better support for 2d-to-3d image scanning support (bindings are much more difficult to support for the advanced features). Bindings may be added back in if an eventual advanced post-processing system is implemented along with a more structured syntax for file creation (or translation to another language). 2016-10-27 21:32:58 -07:00
Michael Smith
df7096f614 Added Tube object sans bindings. 2016-10-26 21:48:42 -07:00
Michael L Smith
e8f7eeeb31 + Added compound object 'box' sans bindings 2016-10-03 22:13:12 -07:00
Michael Smith
3163944451 + Deleted Polygon-Based image processing code that is currently unused
+ Removed unused GlobalReduction method from ImageSimplifier
2016-05-31 22:40:44 -07:00
Michael Smith
14a67a473e Dropped unnecessary simplify method 2016-05-31 22:36:10 -07:00
Michael Smith
ca30b5c888 Refactored height related code from CubistImageProcessor to HeightMapper.cs 2016-05-30 23:45:27 -07:00
Michael Smith
fc40330f43 Adjusted cubification algorithm to perform horizontal/vertical rectangles when able. (Initial version) 2016-05-29 15:20:15 -07:00
Michael Smith
18a93f8b93 Added a HeightMappingMode enumeration and Bidirectional height mapping support. 2016-05-25 23:14:36 -07:00
Michael Smith
adc38a9742 Implemented simple resampling algorithm to provide less hideous reduction of colors in processed images. 2016-05-16 23:41:40 -07:00
Michael Smith
8247c5b807 Shifted image simplification code into ImageSimplifier.cs 2016-05-16 22:44:58 -07:00
Michael Smith
10185ea15e Added a first-pass naive simplification pass for image simplification. 2016-05-16 22:33:45 -07:00
Michael Smith
c6347b0f93 Added a Grayscale import option 2016-05-15 22:09:13 -07:00
Michael Smith
d308a517ee Fix for a compile error (oops), and added ImageImportOptions.cs 2016-05-15 21:27:37 -07:00
Michael Smith
59e250b28d Shifted helper classes for image processing once again to Utility\Images 2016-05-15 21:18:16 -07:00
Michael Smith
5520b73a1d Shifted image processing helpers to Solids/Imported/Images 2016-05-15 21:16:08 -07:00
Michael Smith
79c7828817 Fixed a couple of off by one errors on CubistImageProcessor 2016-05-15 21:10:54 -07:00
Michael Smith
ff27687980 Another quick optimization for a hotspot in the GetPixel calls 2016-05-15 16:38:12 -07:00
Michael Smith
fccd61f7f9 + Added height mappings to CubistImageProcessor
+ Disabled Polygonal image import mode
2016-05-10 21:37:06 -07:00
Michael Smith
5574dfa2c6 Optimized out a bottleneck in CubistImageProcessor.cs 2016-05-08 21:38:27 -07:00
Michael Smith
4f962ca257 More in-progress polygon-based image processing. 2016-05-08 21:17:58 -07:00
Michael Smith
3a0eb13166 Refactored some code used in multiple methods into AdjacentPixelMatrix and NeighboringPointFinder 2016-05-08 16:22:14 -07:00
Michael Smith
5944901b74 Quick optimization to hotspot in getConnectedPixelsOfSameColor (ran really slow on larger images) 2016-05-07 14:38:31 -07:00
Michael Smith
ff333b678a Some more initial code for polygon POC, includes outer-point tracing and some sample output. (Correct Winding still remains) 2016-05-06 17:43:10 -07:00
Michael Smith
50dd621d40 Finished first round of contiguous section algorithm for polygon-based image conversion 2016-05-05 18:25:26 -07:00
Michael Smith
d40977fa4d In-Progress PolygonImageProcessor (finding neighbors now) 2016-05-04 23:42:04 -07:00
Michael Smith
cdd04e9f95 Correction for inverted image. 2016-05-04 07:44:35 -07:00
Michael Smith
3ea6f2cb08 Added IImageProcessor, PolygonalImageProcessor 2016-05-03 23:44:16 -07:00
Michael Smith
d951b5bea0 Added a few comments, did a test print for cubist image imports. 2016-05-03 23:03:47 -07:00
Michael Smith
79268ef334 Extracted cube centric image processing code to CubistImageProcessor.cs 2016-05-03 19:16:32 -07:00
Michael Smith
825791e0fa Shifted ImportedImage and ImportedModel to OSCADSharp\Solids\Imported 2016-05-03 18:47:48 -07:00
Michael Smith
13059f3c2e Added POC of image processing for image imports. 2016-05-03 18:45:10 -07:00
Michael Smith
18a9ef8aa0 POC of brute force image 3Dification. 2016-05-03 02:05:44 -07:00
Michael Smith
8741b7df2a Added error if file not found for model import 2016-05-02 23:14:39 -07:00
Michael Smith
6de63fa3c6 Really didn't need the path correction. 2016-05-01 23:38:10 -07:00
Michael Smith
70a417ac88 Corrected logic in path correction for 3d model import 2016-05-01 23:16:11 -07:00
Michael Smith
2cd40e157c Added ImportedModel Class 2016-05-01 23:09:43 -07:00
Michael L Smith
6f036c8613 + Removed some calls in constructors to virtual methods.
+ Fixed a failing test.
2016-03-22 18:46:38 -07:00
Michael L Smith
90fce7428f Nested CompoundVariable and VariableCalculator under Variable. 2016-03-21 20:21:32 -07:00
Michael Smith
cf7eaa9000 Made a number of fields ReadOnly that are never mutated 2016-03-21 00:37:57 -07:00
Michael L Smith
fd12071509 Added NDepend project, ignored ndepend output 2016-03-20 20:38:27 -07:00
Michael L Smith
f630bb0f23 Shifted some non-basic transforms to AbstractTransforms and some base classes to BaseTransfroms. 2016-03-19 21:59:32 -07:00
Michael Smith
5c0faaf469 Shifted all booleans to OSCADObject.Booleans and made them private 2016-03-18 20:29:16 -07:00
Michael Smith
8c53176d38 + Made OSCADObject a partial class
+ Shifted all core transforms to OSCADObject.BasicTransforms + made them private
2016-03-18 20:22:48 -07:00
Michael Smith
ca6bc89206 Nested OpenSCADPathFinder in OutputSettings 2016-03-18 20:12:00 -07:00
Michael Smith
44b71e0c37 Shifted Cube/Cylinder/Sphere/Text3D back to Solids 2016-03-18 00:08:38 -07:00