Cone face ordering now stable. cylinder updated to match.

This commit is contained in:
Mike Molinari 2022-07-01 22:09:53 +00:00 committed by Val Erastov
parent 720f6f014d
commit 6ca89d1359
2 changed files with 34 additions and 27 deletions

View file

@ -83,28 +83,35 @@ export const PrimitiveConeOperation: OperationDescriptor<PrimitiveConeParams> =
oci.pcone("cone", "csys", params.diameterA / 2, params.diameterB / 2, params.height);
const cone = occ.io.getShell("cone", new ExpectedOrderProductionAnalyzer(
[
{
id: 'F:SIDE',
productionInfo: {
role: 'sweep'
}
},
{
id: 'F:LID',
productionInfo: {
role: 'lid'
}
},
{
id: 'F:BASE',
productionInfo: {
role: 'base'
}
},
],
let newFacesIds = [
{
id: 'F:SIDE',
productionInfo: {
role: 'sweep'
}
},
];
if (params.diameterB > 0) {
newFacesIds.push({
id: 'F:BASE',
productionInfo: {
role: 'base'
}
})
}
if (params.diameterA > 0) {
newFacesIds.push({
id: 'F:LID',
productionInfo: {
role: 'lid'
}
});
}
const cone = occ.io.getShell("cone", new ExpectedOrderProductionAnalyzer(newFacesIds,
[],
[]
));

View file

@ -84,18 +84,18 @@ export const PrimitiveCylinderOperation: OperationDescriptor<PrimitiveCylinderPa
role: 'sweep'
}
},
{
id: 'F:LID',
productionInfo: {
role: 'lid'
}
},
{
id: 'F:BASE',
productionInfo: {
role: 'base'
}
},
{
id: 'F:LID',
productionInfo: {
role: 'lid'
}
},
],
[],