You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have the following code for replacing the shape for non assembly model but it doesn't work on an assembly. so is there any different approach for it
function replaceOpenCascadeShape(inShapeTool, oldOpenCascadeShape, newOpenCascadeShape, openCascade) {
let reShapeTool = new openCascade.BRepTools_ReShape()
reShapeTool.Replace(oldOpenCascadeShape, newOpenCascadeShape)
let label = inShapeTool.FindShape_2(oldOpenCascadeShape, true);
let newShape = reShapeTool.Apply(newOpenCascadeShape, openCascade.TopAbs_ShapeEnum.TopAbs_SHAPE)
let assembly = getAssembly(inShapeTool, openCascade)
if (!openCascade.XCAFDoc_ShapeTool.IsAssembly(assembly)) {
inShapeTool.SetShape(label, newShape)
}
}
The text was updated successfully, but these errors were encountered:
RajanHexa
changed the title
can i modify or replace a shape for an assembly ? (Adding new shape replacing the old opencascade shape). i have the following code for replacing the shape for non assembly model but it doesn't work on an assembly. so is there any different approach for it
can i modify or replace a shape for an assembly ? (Adding new shape replacing the old opencascade shape)
Oct 2, 2023
i have the following code for replacing the shape for non assembly model but it doesn't work on an assembly. so is there any different approach for it
The text was updated successfully, but these errors were encountered: