1. Eberhard Rensch
  2. Pleasant3D_OpenSource

Source

Pleasant3D_OpenSource / ToolPlugins / Slice / SliceKernel.h

//
//  SliceKernel.h
//  Slice
//
//  Created by Eberhard Rensch on 12.08.09.
//  Copyright 2009 Pleasant Software. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <OpenCL/OpenCL.h>
#import <P3DCore/P3DCore.h>

@interface SliceKernel : NSObject {
	cl_device_id device_id;
	cl_context context;
	cl_command_queue queue;
	cl_program program;
	cl_kernel kernelCalcLineOffsets;
	cl_kernel kernelSliceTriangles;
	cl_kernel kernelInsetLoop;
	cl_kernel kernelOptimizeCornerPoints;
	cl_kernel kernelOptimizeConnections;
	
	float extrusionHeight;
	float extrusionWidth;
}

@property (assign) float extrusionHeight;
@property (assign) float extrusionWidth;

- (P3DLoops*)slice:(IndexedSTLModel*)indexedModel;

@end