I load one model on the basis of loading another model with loadmodel, and find that it overlays the first model directly, and the two overlap.
how should I set its load location? Or is it right for me to load like this?
I load one model on the basis of loading another model with loadmodel, and find that it overlays the first model directly, and the two overlap.
how should I set its load location? Or is it right for me to load like this?
this has been answered to you in the WeChat group. The condition for using Global Offset alignment is that the three models are the same coordinate origin in the Revit document, and if the alignment of the model is from the origin to the origin, I hope it will be helpful!
Forcode, please refer to https://stackoverflow.com/a/5.:
var models = [
'123.svf',
'123.svf'
];
function _onGeometryLoaded( event ) {
if( urns.length <= 0 ) {
viewer.removeEventListener(
Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
_onGeometryLoaded
);
return;
}
viewer.loadModel( urns[0], { globalOffset: event.model.getData().globalOffset } );
urns.splice( 0, 1 );
}
viewer.addEventListener(
Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
_onGeometryLoaded
);
viewer.loadModel( urns[0] );
urns.splice( 0, 1 );
Previous: A sorting problem for dictionaries in the Python list. How to sort by the size of a key?
Next: Using roketmq to send a string, why did consumer receive a number?
as far as I understand it, this new first view tool is a roaming tool with gravity. The default view of this tool is a little high. How to set this height? ...
the default rendering style of viewer and the rendering style in the settings are not very suitable for my needs. Is there any way to set the default rendering effect of viewer? For example, the following two pictures, the first is the default rendering ...
how to extract the engineering quantity of different measurement units at one time: for example: column, wall, beam and plate are measured by volume; doors and windows are measured by area or floor; electromechanical pipes are measured by length; . ...
A grid function needs to be added to the recent project. Refer to the grid effect done by others as follows: when the mouse hovers over a circle or a straight line, a label prompts : demothree.jsthis.viewer.impl.scenehtmlcanvas ...
recently found in the project that the viewer.fitToView () method in 2D mode is invalid because there is no model.getData (). InstanceTree in 2D. Therefore, I want to find the geometric model information of each component in the model, calculate the ...