This commit is contained in:
Pierre Jacquier
2025-01-03 12:34:33 -05:00
parent 43f16b3aac
commit 7c2bf8164b
4 changed files with 1 additions and 12 deletions

View File

@ -187,7 +187,6 @@ export function createArtifactGraph({
myMap.set(id, mergedArtifact)
})
})
console.log('Solid3dGetExtrusionFaceInfo ag', myMap)
return myMap
}
@ -426,7 +425,6 @@ export function getArtifactsToUpdate({
response?.type === 'modeling' &&
response.data.modeling_response.type === 'solid3d_get_extrusion_face_info'
) {
console.log('TS Solid3dGetExtrusionFaceInfo cmd response', cmd, response)
let lastPath: PathArtifact
response.data.modeling_response.data.faces.forEach(
({ curve_id, cap, face_id }) => {

View File

@ -172,7 +172,6 @@ export async function getEventForSelectWithPoint({
Models['OkModelingCmdResponse_type'],
{ type: 'select_with_point' }
>): Promise<ModelingMachineEvent | null> {
console.log('Solid3dGetExtrusionFaceInfo getEventForSelectWithPoint', data)
if (!data?.entity_id) {
return {
type: 'Set selection',
@ -209,7 +208,6 @@ export async function getEventForSelectWithPoint({
}
let _artifact = engineCommandManager.artifactGraph.get(data.entity_id)
console.log('found _artifact from selection', _artifact)
const codeRefs = getCodeRefsByArtifactId(
data.entity_id,
engineCommandManager.artifactGraph
@ -843,7 +841,6 @@ export function updateSelections(
): Selections | Error {
if (err(ast)) return ast
console.log('updateSelections pathToNodeMap', pathToNodeMap)
const newSelections = Object.entries(pathToNodeMap)
.map(([index, pathToNode]): Selection | undefined => {
const previousSelection =

View File

@ -147,8 +147,6 @@ pub(crate) async fn do_post_extrude(
// The "get extrusion face info" API call requires *any* edge on the sketch being extruded.
// So, let's just use the first one.
#[cfg(target_arch = "wasm32")]
web_sys::console::log_1(&format!("Rust Solid3dGetExtrusionFaceInfo sketch={:?}", sketch).into());
let Some(any_edge_id) = sketch.paths.first().map(|edge| edge.get_base().geo_meta.id) else {
return Err(KclError::Type(KclErrorDetails {
message: "Expected a non-empty sketch".to_string(),
@ -163,8 +161,6 @@ pub(crate) async fn do_post_extrude(
sketch.id = face.solid.sketch.id;
}
#[cfg(target_arch = "wasm32")]
web_sys::console::log_1(&format!("Rust Solid3dGetExtrusionFaceInfo cmd edge_id={:?} object_id={:?}", any_edge_id, sketch.id).into());
let solid3d_info = args
.send_modeling_cmd(
exec_state.next_uuid(),

View File

@ -158,6 +158,7 @@ async fn inner_loft(
}),
)
.await?;
let OkWebSocketResponseData::Modeling {
modeling_response: OkModelingCmdResponse::Loft(data),
} = &resp
@ -168,9 +169,6 @@ async fn inner_loft(
}));
};
#[cfg(target_arch = "wasm32")]
web_sys::console::log_1(&format!("Rust Loft result solid_id={:?}", data.solid_id).into());
// Take the sketch with the most paths, and override its id with the loft's solid_id (to get its faces)
let mut desc_sorted_sketches = sketches.to_vec();
desc_sorted_sketches.sort_by(|s0, s1| s1.paths.len().cmp(&s0.paths.len()));