Commit Graph

63 Commits

Author SHA1 Message Date
TomyLobo
d4a7f7b48a ConvexPolyhedralRegions now preserve the order of their vertices. 2013-08-06 11:50:41 -04:00
TomyLobo
b28fdbfe4e Used vector constants in all appropriate placed. 2013-08-06 11:50:39 -04:00
TomyLobo
731c8a0ce7 Added a ConvexPolyhedralRegion and selector 2013-08-06 11:50:35 -04:00
TomyLobo
22798f49c8 Reduced some code duplication in the regions. 2013-08-06 11:50:34 -04:00
TomyLobo
c838ef7b25 Moved the polygonization code to the specific regions that are being polygonized.
Also, maxPoints no longer has confusing semantics.
2013-08-06 11:50:33 -04:00
TomyLobo
e787013bad Fixed a typo. 2013-08-04 10:12:15 +02:00
TomyLobo
98e466d371 Fixed a typo. 2013-08-03 15:29:33 +02:00
TomyLobo
6f3fbdc963 Removed some debug prints. 2013-07-02 07:30:00 -04:00
TomyLobo
d7837f6121 Added cylinder->polygon conversion. 2013-07-02 07:29:59 -04:00
TomyLobo
5db504aed2 @Deprecated 2 deprecated constructors. 2013-06-22 05:56:02 +02:00
wizjany
ca06489e11 Don't spam chat when a different type of vector is given to the Selector. 2013-05-16 02:02:09 -04:00
Wizjany
3f1a2bfc39 Fix off by one error when calculating Poly2D region dimensions. 2012-12-05 18:32:16 -05:00
aumgn
da400ffdeb Remove deprecated Region#contract/expand(Vector) methods
Those methods hid varargs versions which are not deprecated
2012-11-12 10:36:44 +01:00
aumgn
7fd5d1b61c Add /center commmand 2012-08-29 11:51:57 +02:00
aumgn
77bc49e057 Add convenient constructors in *RegionSelector classes 2012-08-27 20:14:05 +02:00
TomyLobo
afb9052cc9 ExtendingCuboidRegionSelector's ctor now requires a LocalWorld. 2012-07-28 14:49:30 +02:00
sk89q
dc17c8d064 Increased polygonal region point limit to 50. 2012-06-30 17:21:26 -07:00
aumgn
cd64ca459d Add config entries for polygonal region points limit 2012-04-23 11:39:09 +02:00
aumgn
d2a72579ae Fix typos in CuboidRegion minimum/maximumY methods 2012-04-22 08:29:49 +02:00
aumgn
ebbbc9f1a8 Clean up CylinderRegion center management & fix a minor issue with vertical contract 2012-04-22 08:29:45 +02:00
aumgn
d43e233a42 Slightly improve FlatRegion iteration 2012-04-16 08:48:24 +02:00
aumgn
a7b49ff793 Add minimum/maximumY to FlatRegion and fix a typo in Polygonal2DRegion 2012-04-16 08:45:53 +02:00
aumgn
842c469285 Make regions Cloneable 2012-03-31 09:04:54 -07:00
zml2008
03f7d4ecfb Added getChunkCubes() to Region to get 16^3 chunks a region overlaps with 2012-03-29 21:14:45 -07:00
aumgn
bbda908093 Remove error-prone redundancy in Polygonal2D min/max management 2012-03-26 07:44:04 +02:00
aumgn
a23e9b857f Add FlatRegion interface and an associated iterator 2012-03-17 09:26:05 +01:00
TomyLobo
4ad330a958 Fixed //shift not updating polygonal regions properly. 2012-03-15 09:05:47 +01:00
aumgn
857f721bb5 Add support for expand with reverse dir for Cylinder & Ellipsoid 2012-03-15 08:51:37 +01:00
aumgn
8506bb437e Deprecate expand/contract(Vector) in favor of varargs versions
This keeps things simpler by not dealing with redundant implementations
for single change and multiple changes.
This also let regions handle related changes in a more efficient way
(for example recalculates region components only when needed).
2012-03-15 08:31:39 +01:00
aumgn
1359a7fada Implement contract/expand(Vector...) for Cylinder & Ellipsoid 2012-03-15 08:31:30 +01:00
zml2008
373e4b90c9 Clean up some stray 128 values and update the defaults 2012-03-01 20:47:19 -08:00
TomyLobo
06e9a3b175 Removed Polygonal2DRegionIterator. 2012-01-23 02:00:24 +01:00
Ferreira Christopher
eee02565ca Fix NPE in CylinderRegion 2012-01-22 12:02:11 +01:00
TomyLobo
8aa65fd7f4 License block changes
Added some missing license blocks
Added "and contributors" to all copyright notices.
Added $Id$ to files that were still missing it.
Changed "All rights reserved" to GPLv3 on Injector.java.
2012-01-20 08:24:32 +01:00
TomyLobo
ef3aeda0dc Added vararg expand and contract overload to Region and AbstractRegion. 2012-01-05 21:06:40 +01:00
Yetanotherx
8a24fd9741 Add a cylindrical region selector.
- Supports shift
- Supports expand/contract on the y axis
- getArea is slightly inaccurate, but more accuracy would mean more CPU usage.
- Displays as a cuboid in legacy mode.
2012-01-03 23:35:29 +01:00
TomyLobo
0138cd7f1c EllipsoidRegion's constructor now takes radius, not offset radius. 2012-01-03 17:40:36 +01:00
TomyLobo
3a828c9759 Added Region.shift
- Provided a default implementation using expand+contract in AbstractRegion
- Overrid the implementation in the subtypes
2012-01-03 17:40:36 +01:00
TomyLobo
4d708a5003 Extracted an AbstractRegion class with some common functionality of all the region types. 2012-01-03 16:35:19 +01:00
TomyLobo
2cc0087524 Made Polygonal2DRegion(LocalWorld) invoke one of the other constructors. 2012-01-03 16:09:38 +01:00
TomyLobo
082a1995db Moved EllipsoidRegion's iterator into a separate class called RegionIterator. 2012-01-03 14:26:43 +01:00
TomyLobo
7c71617dbf Renamed Polygonal2DRegion.getMin/MaxY to getMinimum/MaximumY. 2012-01-03 04:44:34 +01:00
Yetanotherx
b96ef7b620 Allow conversion from an old region to ellipsoid when using //sel. 2012-01-02 22:15:04 -05:00
TomyLobo
e598f8eaa0 Made the fields of Polygonal2DRegionSelector private. 2012-01-03 03:42:39 +01:00
TomyLobo
b05a72fea1 Made the fields in Polygonal2DRegion private. 2012-01-03 03:20:19 +01:00
TomyLobo
f2e26b07ec Some region selection fixes
- CuboidSelection no longer deals with IncompleteRegionExceptions
- Fixed Polygonal2DSelection not passing its region to the selector
- Fixed Polygonal2DRegion not cloning the list it receives in its constructor
- Gave PolygonalRegionSelector a new constructor where it takes a list of points
2012-01-01 14:50:26 +01:00
Yetanotherx
3b87953da0 Add cuiVersion to LocalSession and set it via incoming CUI event
Refactor region selectors to handle legacy versions a bit better.
Because chat doesn't allow the section sign to be sent, I have to send non-color codes. Meh.
closes #158
2011-12-31 22:31:05 -08:00
TomyLobo
616f9a2360 Added support for ellipsoid and sphere selections.
//sel ellipsoid, //sel sphere.
2011-12-30 12:02:15 +01:00
TomyLobo
45655e1189 Added a legacy type id system to CUI.
Selection types can send fallback typeids and information now, for older WECUI versions to use.
2011-12-30 12:02:15 +01:00
TomyLobo
7d503fdc5c //sel poly now keeps the previous selection, converting its outline into a polygon if necessary.
This loses some blocks, if anyone cares
2011-12-27 12:07:11 +01:00