斯潘8
span4
This workspace demonstrates some basic approaches for how to add to and manipulate the appearance of 3D data,包括光栅纹理叠加和实体的颜色样式。This model reads 3D buildings from CAD,uses point cloud from LAS to generate terrain,将Geotiff Orthophotos的外观纹理添加到地形中,然后根据高度设置建筑物的样式。输出将写入3D PDF。
The ability to style a 3D city model on a conditional factor such as a delineated height provides a powerful tool for data visualization,快速识别出一组建筑物在某些特定属性上与另一组建筑物不同。In other words,it highlights features that are important and displays another layer of information.
作为源数据,我们有建筑物,一个las点云和两个geotiff正射影像。在3d_buildings.dwg中读取时,记住设置参数:'实体分组依据' to ‘属性架构' in order to expose the BuildingID attribute.
In addition to the X,Yand Z components,most point clouds have another component,存储点云分类。这种分类通常用来区分地面的高度,植被,and the buildings.在本例中,所有分类为地面的点都与其他点分开。将split by:设置为分类,and the ‘Unique Values to Keep' to 2 for ground classifications.
以点云为裁剪器,正射影像为裁剪器,所有剪裁都被剪裁到点云的边界框。rastermosaicker从源正射影像创建单个光栅特征。
The TINGenerator creates a triangulated irregular network using the points of the point cloud.曲面公差决定哪些输入点作为顶点添加到模型中。值越大,过滤掉的输入点越多,曲面模型的建立速度越快。Set the surface tolerance to 1.
The source Autodesk DWG CAD file consists of several features per building.In order to style all buildings consistently,the features are aggregated by a unique building identifier called建筑ID.To demonstrate two different styles,all buildings are split into two groups based on their height.This is done by using the BoundsExtractor to extract the minimum bounding rectangle of the feature's coordinates into new attributes and then using the TestFilter to filter out whether the maximum is above or below 40m.
In the TestFilter,set Port Definitions to:
外观可以定义三维表面颜色的细节,including its reaction to lighting,或者定义一个表面的纹理。对于40米以下的建筑物,我用过:
在另一个外观中,高度超过40米的建筑物用变压器更大,我用过:
不同颜色参数的效果通过创建两种非常不同的样式来体现:明亮和闪亮,nearly glass-like appearance and a dark matte color with low reflection.
Diffuse colordefines the actual color of the object rather than the reflection.对外观最明显的影响似乎是由镜面颜色.它定义反射的颜色。A bright specular color can also support the shininess of a surface,while dark tones are useful for a matte effect.For bright and shiny effects it is a good idea to choose a bright发射颜色which goes well with the diffuse color.Maximum shininess and some transparency helps to create a glass-like effect.For dark and more dull effects,or to avoid emissive color at all to reduce reflection,it is 亚搏在线safe to choose black.Ambient colorwas avoided in these examples because the effects in the resulting 3D PDF document were minimal.
在尝试不同的设置后,在所选格式的本机查看器中检查结果非常重要。The results can be very different to the representation you see in the Data Inspector,因为所有的颜色参数在很大程度上取决于不同观察者的3D灯光设置。
正射影像作为外观添加到Tinsurface几何体中。Since the extent of the raster data matches the extent of the surface model,the texture mapping type ‘From Top View' is chosen.
The data is written to a 3D pdf and represents the 3D model in two different layers.When running the workspace,remember to adjust ‘Rejected Feature Handling' to ‘Continue Translation'.This setting can be found in the Navigator > Workspace Parameters > Translation.
Instead of a single color,不同的纹理可以作为建筑物的外观应用。Check out the parameters in the AppearanceSetter to style and alter textures.
© 2019 亚搏在线Safe Software Inc |Legal