57 Commits

Author SHA1 Message Date
Michael Smith
69a739c12f + Added some + and - operator tests
+ Adjusted behavior so that using + or - repeatedly adds to the same Union/Difference object instead of a nasty nested chain
2016-02-17 22:50:33 -08:00
Michael Smith
160986eb95 + Fix for a missing newline occurring for some solids in block statemants. 2016-02-17 22:31:51 -08:00
Michael Smith
10e2ffb356 + Added + and - operators as Union and Difference for for OSCADObjects 2016-02-17 22:30:05 -08:00
Michael L Smith
a71f28f5e4 Added lots of comments to get rid of the compiler warnings that appeared after turning XML docs on. 2016-02-17 21:29:10 -08:00
Michael L Smith
637955f2b7 + Updated project settings to include xml documentation output
+ Updated Matrix comment
2016-02-16 21:56:19 -08:00
Michael Smith
1440def15d Merge pull request #1 from Exolun/PositionInterpolation
Position interpolation
2016-02-16 20:08:20 -08:00
Michael L Smith
3024b7a5fe + Added one more test for position after lots of operations. 2016-02-16 20:00:55 -08:00
Michael L Smith
b6a454e8b9 + Added NotSupportedExceptions on all block statements except Hull and Union when Position() is called on them 2016-02-16 19:54:34 -08:00
Michael L Smith
2bbe452da6 + Added a NotSupportedException when Position is called on a mirrored object that's been mirrored on multiple axes + test 2016-02-16 19:34:33 -08:00
Mike Smith
8e5aa0a2f3 + Added some additional Vector operations 2016-02-16 17:37:21 -08:00
Michael L Smith
07c845bcbd + Position interpolation for single-axis mirroring. 2016-02-15 21:45:38 -08:00
Michael L Smith
294ae7e357 Several more Position implementations 2016-02-15 21:18:13 -08:00
Michael L Smith
8831610bda + Implemented Position on Cylinder, Sphere, Text3D
+ Made the executive decision that Text3D in OSCADSharp is always centered in script output, to facilitate correct position calculation.
2016-02-15 21:00:43 -08:00
Michael L Smith
12eb89adbb Added some tests for known expected interpolation positions. 2016-02-15 20:30:46 -08:00
Mike Smith
1be343fadc Possible functioning implementation of Rotate's point interpolation (at least with center=true). Further testing needed. 2016-02-15 00:31:20 -08:00
Mike Smith
2a7ee3ab63 Added Cube position, Translate interpolation 2016-02-14 23:27:53 -08:00
Mike Smith
49d2de3046 + Added new abstract 'position' method to OSCADObject, overrides on all pertinent classes. (Not implemented yet) 2016-02-14 23:00:27 -08:00
Mike Smith
bc69fa877b Moved Vector3 to Spatial folder 2016-02-14 22:53:28 -08:00
Mike Smith
3711b6ef6b Added Matrix.cs, matrix multiply method, Vector to matrix factory method 2016-02-14 22:53:04 -08:00
Mike Smith
5a61dd2199 Fix for Hull and Minkowski not adding the basis object to the children affected by the Hull/Minkowski operation. 2016-02-14 18:45:31 -08:00
Mike Smith
1402690f2d Fix for missing Diameter value assignment in Cylinder constructor 2016-02-14 18:36:55 -08:00
Mike Smith
750937a25e + Added UnionTests
+ Fixed an issue where the children of Union as per Children() appeared in the reverse of the expected order
2016-02-14 11:50:32 -08:00
Mike Smith
ae3f9e4d2f Added HulledObject, Hull 2016-02-14 11:34:58 -08:00
Mike Smith
81b49cf994 Renamed BlockFormatter -> SingleBlockFormatter
BlockStatementObject -> MultiBlockStatementObject
2016-02-14 11:26:47 -08:00
Mike Smith
e1aa360635 Added MinkowskiedObject, Minkowski 2016-02-14 11:22:17 -08:00
Mike Smith
7e8cc89e6b + Tried to simplify Mimic method. Mostly succeeded. 2016-02-14 10:51:45 -08:00
Mike Smith
3d31d10912 + 2 more mimic tests
+ Fix for an issue with Children() where duplicate children were being added on structures with 3+ OSCADObjects
2016-02-14 10:31:47 -08:00
Mike Smith
becb6af003 IMimicer -> IMimic 2016-02-14 10:17:55 -08:00
Mike Smith
1746190165 Added 'mimic' method to copy identical transforms to other objects 2016-02-14 01:07:18 -08:00
Mike Smith
e8c42deb30 + Added .Children() method to OSCADObjects
+ Added some tests for children
+ Fixed an issue where cloned objects for Transforms would not have cloned children
2016-02-14 00:19:29 -08:00
Mike Smith
8fe459a5ba + Deleted Equals and GetHashCode overrides in Cube/Sphere.
+ Added an IsSameAs method to OSCADObject
+ Modified tests accordingly
2016-02-13 13:01:02 -08:00
Mike Smith
7d59afbdd9 + Added some tests for Cube
+ Adjusted some of the Sphere tests
+ Overrides for .Equals and .GetHashCode on Cube and Sphere
2016-02-12 18:16:00 -08:00
Mike Smith
7efd7f161d + Added a Clone() test for Sphere 2016-02-12 17:02:21 -08:00
Mike Smith
dc950b5fdb +Unit test project
+ Added some unit tests on spheres/sphere script output.
2016-02-11 22:55:13 -08:00
Mike Smith
af372fb0da Merge branch 'master' of https://github.com/Exolun/OSCADSharp 2016-02-10 23:52:14 -08:00
Mike Smith
f74592116f Added Add/Subtract vector operators, and Negate and Clone methods 2016-02-10 23:46:31 -08:00
Mike Smith
55bb5ba558 Shifted Text3D to Solids folder/namespace 2016-02-10 23:17:21 -08:00
Mike Smith
03ea1c3cb6 Added some constructors for common ways to create simple solids 2016-02-10 23:16:20 -08:00
Michael L Smith
0d7eaf89e0 Added 'sizes' class with some constants and an inches to milimeters function 2016-02-10 21:53:07 -08:00
Mike Smith
152a63ee77 Added builtin linear extrude on Text3D 2016-02-10 00:09:07 -08:00
Mike Smith
b5d2160006 Added LinearExtrudedObject, Text3D 2016-02-09 23:54:22 -08:00
Mike Smith
a3435a24e7 Added in-progress Text3D 2016-02-08 23:38:41 -08:00
Mike Smith
1449cdd2b2 Added Clone() method to OSCADObject and all descendants 2016-02-07 22:04:05 -08:00
Mike Smith
49fcccc8df Shifted BlockFormatter and BlockStatementObject to Scripting folder and Scripting namespace 2016-02-07 21:37:44 -08:00
Mike Smith
8435737df5 Added Intersection boolean operation 2016-02-07 21:34:40 -08:00
Mike Smith
9ccf494e81 Added Difference boolean operation 2016-02-07 21:29:41 -08:00
Mike Smith
a34992bfaa Refactored UnionObject to primarily just use BlockStatementObject for string construction 2016-02-07 21:17:43 -08:00
Mike Smith
efc981579f Added Union (first Boolean operation) 2016-02-07 21:07:58 -08:00
Mike Smith
584049346f Added overloads for transforms that take a vector to allow for X/Y/Z doubles to be used directly 2016-02-07 11:49:29 -08:00
Mike Smith
43d9369187 Finished out composite behaviors for OSCADObject transforms. 2016-02-07 11:40:13 -08:00