public ISurfaceAlgorithm(GraphicsDevice device, int resolution, int size, bool _3d, bool indexed = true, int vertex_size = 524288, int index_size = 4000000)
{
Device = device;
Resolution = resolution;
Size = size;
Is3D = _3d;
IsIndexed = indexed;
CustomWireframe = false;
SpecialShader = false;
SupportsDeferred = false;
VertexBuffer = new DynamicVertexBuffer(device, VertexPositionColorNormal.VertexDeclaration, vertex_size, BufferUsage.None);
OutlineBuffer = new DynamicVertexBuffer(device, VertexPositionColor.VertexDeclaration, index_size, BufferUsage.None);
if (indexed)
{
IndexBuffer = new DynamicIndexBuffer(device, IndexElementSize.ThirtyTwoBits, index_size, BufferUsage.None);
Indices = new List<int>();
}
Vertices = new List<VertexPositionColorNormal>();
}