Exemplo n.º 1
0
    public static IList <Voxel> Create(Mesh boundary, double length, List <Curve> alignments, double alignmentDistance, List <GeometryBase> attractors, double attractorDistance, int[] typesCount)
    {
        var voxels = new VoxelTiles(boundary, length, alignments, alignmentDistance, attractors, attractorDistance, typesCount);
        var result = voxels.GetVoxels().Where(v => v.IsActive);

        return(result.ToList());
    }
Exemplo n.º 2
0
    //public GeometryBase Geometry;


    public Voxel(Vector3i index, VoxelTiles grid)
    {
        Index           = index;
        Location        = Plane.WorldXY;
        Location.Origin = grid.Corner + new Vector3d(index.X + 0.5f, index.Y + 0.5f, index.Z + 0.5f) * grid.VoxelSize;
    }