IGetIntersectedOption 接口
interface IGetIntersectedOption
获取模型的交接信息
属性
bodyDistTol
bodyDistTol?: number;
交接体阈值 单位:毫米 0.1
computeModelTypes
computeModelTypes?: Array<EIntersectModelType>;
参与计算的对象 传入商品需要明确指定prodCatIds [EIntersectModelType.PLANK,EIntersectModelType.HARDWARE]
类型: Array<EIntersectModelType>
direction
direction?: EProductDirection;
商品统一建模方向 EProductDirection.XY
faceDistTol
faceDistTol?: number;
交接面阈值 单位:毫米 0.1
intersectedInfoType
intersectedInfoType?: EIntersectedInfoType[];
支持配置的交接类型 默认输出交接面&交接体 交接面不支持配置(一定输出) 支持配置输出交接体/贯穿交接体
类型: EIntersectedInfoType[]
modelId
modelId: string;
模型ID
primitiveMatch
primitiveMatch?: {
extendedCode: string[];
};
元件匹配 仅命中条件的元件会被输出,可与productDirectionConfig配合使用 与computeModelTypes,products,direction字段互斥
productDirectionConfig
productDirectionConfig?: {
extendedCode: string;
referencePlane: EReferencePlane;
}[];
商品配置 用于定义符合条件的商品以及商品的建模平面 可与primitiveMatch配合使用 与computeModelTypes,products,direction字段互斥
类型: { extendedCode: string; referencePlane: EReferencePlane; }[]
products
products?: Array<{
category: number;
}>;
参与计算的商品
thicknessFilter
thicknessFilter?: boolean;
是否过滤板厚 true
thicknessFilterBody
thicknessFilterBody?: boolean;
不足板厚,是否输出交接体 true 默认true,即输出交接体
thicknessFilterFaceDistTol
thicknessFilterFaceDistTol?: number;
不足板厚,配置允许输出交接面的阈值范围; 在阈值范围内输出交界面,在阈值范围外不输出交界面; 该字段需要配合thicknessFilter一起使用,即 thicknessFilter为true时,该字段才会生效; 0.05
timeout
timeout?: number;
超时时间 单位:秒
tolerance
tolerance?: number;
警告:此 API 现已过时。
可使用bodyDistTol/faceDistTol分别指定交接体/面阈值 含义为交接面/体进行运算过程中的阈值容差;即两个平行面之间,生成交接信息时,最大距离 默认值为 0.1mm 单位:毫米