mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 04:45:06 +01:00
Cone face ordering now stable. cylinder updated to match.
This commit is contained in:
parent
720f6f014d
commit
6ca89d1359
2 changed files with 34 additions and 27 deletions
|
|
@ -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,
|
||||
[],
|
||||
[]
|
||||
));
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
},
|
||||
|
||||
],
|
||||
[],
|
||||
|
|
|
|||
Loading…
Reference in a new issue