Interface PolygonsModuleOption

interface PolygonsModuleOption {
    borderStyle?: LineMaterialParameters;
    data: PolygonItemData[];
    highlightStyle?: MeshBasicMaterialParameters;
    isXYPlane?: boolean;
    showBorder?: boolean;
    showVertex?: boolean;
    style?: MeshBasicMaterialParameters;
    useBvh?: boolean;
    vertexStyle?: SymbolMaterialProps & {
        pointBorderColor?: ColorRepresentation;
        pointColor?: ColorRepresentation;
        pointSize?: number;
    };
    yOffsetDelta?: number;
}

Properties

borderStyle?: LineMaterialParameters

边框样式

数据

highlightStyle?: MeshBasicMaterialParameters

高亮样式

isXYPlane?: boolean

数据是否在xy平面,默认为xz 平面

showBorder?: boolean

是否显示边框

showVertex?: boolean

是否显示顶点(全局控制显示)

style?: MeshBasicMaterialParameters

样式

useBvh?: boolean

是否使用bvh射线查询。默认是

vertexStyle?: SymbolMaterialProps & {
    pointBorderColor?: ColorRepresentation;
    pointColor?: ColorRepresentation;
    pointSize?: number;
}

顶点样式

Type declaration

  • Optional pointBorderColor?: ColorRepresentation
  • Optional pointColor?: ColorRepresentation
  • Optional pointSize?: number
yOffsetDelta?: number

y方向偏离值,默认0.1,用于解决z-fighting