package org.jzy3d.plot3d.builder.concrete;

import java.util.ArrayList;
import java.util.List;

import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d.maths.Coord3d;
import org.jzy3d.plot3d.primitives.AbstractComposite;
import org.jzy3d.plot3d.primitives.AbstractDrawable;
import org.jzy3d.plot3d.primitives.Point;
import org.jzy3d.plot3d.primitives.Polygon;
import org.jzy3d.plot3d.primitives.Shape;


public class RingTessellator extends OrthonormalTessellator{
	public RingTessellator(float ringMin, float ringMax, ColorMapper cmap, Color factor){
		this.ringMin = ringMin;
		this.ringMax = ringMax;
		this.cmap    = cmap;
		this.factor  = factor;
	}
	
	@SuppressWarnings("unused")
	private RingTessellator(){
		throw new RuntimeException("Forbidden constructor!");
	}

	
	@Override
    public AbstractComposite build(float[] x, float[] y, float[] z) {
		setData(x, y, z);
		Shape s = new Shape();
		s.add(getInterpolatedRingPolygons());
		return s;
	}
	
	/**************************************************************************************/
	
	/** Load data standing on an orthonormal grid.
	 * 
* Each input point (i.e. the association of x[i], y[j], z[i][j]) will be * represented by a polygon centered on this point. The default coordinates * of this polygon will be: * * There are thus three types of polygons: *

Ads help maintain this website.