参数值:length = 61.419754, width = 41.358025, height = 29.938272, boxClipPart = 1,使用【北京CBD】示例数据,在屏幕中心点裁剪。开始裁剪,没有效果。请问Box裁剪是这样完成的吗?如果有错误,该怎么实现功能呢?代码如下:
- (void)sceneAnalysisBoxClipInView:(UIView *)view withLength:(float)length width:(float)width height:(float)height part:(BoxClipPart)part {
DLog(@"length = %f, width = %f, height = %f, boxClipPart = %d", length, width, height, part);
Size2D *size = [[Size2D alloc] initWithWidth:length Height:width];
Point3D position = [self.sceneControl.scene pixelToGlobe:self.sceneControl.center];
GeoBox *box = [[GeoBox alloc] initWithPosition:position bottomSize:size height:height];
Layer3D *layer3D = [self.sceneControl.scene.layers getLayerWithName:@"Building@CBD_new"];
[layer3D clipByBox:box part:part];
[self.sceneControl.scene refresh];
}