Beispiel #1
0
def oclResampleChunks(operation, chunks_to_resample):
    tmp_chunks = list()
    tmp_chunks.append(camPathChunk(inpoints=[]))
    for chunk, i_start, i_length in chunks_to_resample:
        for p_index in range(i_start, i_start + i_length):
            tmp_chunks[0].append(chunk.points[p_index])

    samples = ocl_sample(operation, tmp_chunks)

    sample_index = 0
    for chunk, i_start, i_length in chunks_to_resample:
        for p_index in range(i_start, i_start + i_length):
            z = samples[sample_index].z / OCL_SCALE
            sample_index += 1
            if z > chunk.points[p_index][2]:
                chunk.points[p_index][2] = z
Beispiel #2
0
def oclSamplePoints(operation, points):
    samples = ocl_sample(operation, points)
    pointSamplesFromOCL(points, samples)
Beispiel #3
0
def oclSample(operation, chunks):
    samples = ocl_sample(operation, chunks)
    chunkPointSamplesFromOCL(chunks, samples)