Changelog
periodically, we update the 3d viewer sdk with new features, improvements, and bug fixes this page lists all the changes made to the sdk 2024 12 11 updated three js to r168 fixed occasional flickering during incremental rendering added transform option to loadmodel and loadmodelsfromtoken methods fixed incorrect lighting of shapes when using addshape method fixed initialstate option of loadmodel and loadmodelsfromtoken methods 2024 09 24 updated three js to r165 removed support for webgl1 fixed unnecessary redrawing when moving the measure cursor added calculatesectionplanesforboundingbox method improved initial viewpoint on large projects and projects containing misplaced geometry fixed activeclippingplanebordercolor viewer load option not being applied fixed circle shape only having one visible side in addshape method fixed measure labels not removed when dispose method invoked added clippingplanes and measure events to javascript api fixed modelid parameter of loadmodelsfromtoken method being ignored fixed incorrect size used for box and circle shapes in addshape method fixed flickering during incremental rendering fixed onclick callback provided to addshape method not being invoked 2024 04 03 updated three js to r152 added activeclippingplanebordercolor setting to change the color of the border of the active clipping plane added setmeasuresettings and getmeasuresettings methods to manage the settings for measurements added shading paramater to getrendersettings and setrendersettings methods to set the shading type used fixed an issue where point cloud models were not loading correctly deprecated measureoptions method, use setmeasuresettings and getmeasuresettings instead 2023 04 27 updated three js to r144 added setappearancesettings method to manage the appearance settings added grid selection by clicking on curve or axis extrusion added highlighting of selected grids added support for clipping planes as a navigation target added modelid to the getproducts method added addshape , removeshape , and clearshapes methods added getproducts method added showclippingplanewidget and hideclippingplanewidget methods added initialstate setting to loadmodel added globalid property to grids added depthbuffer setting to rendersettings added setcamerasettings and getcamerasettings methods added modelid property to grids improved grid loading performance changed rotation to be around point beneath cursor changed axis extrusions of hidden grids to be hidden changed cursor to be hidden on drag for measure tools changed measure tools to only trigger on left click fixed an issue where contour sometimes does not work in orthographic mode changed initial viewpoint on large projects and projects containing misplaced geometry changed when loading models to ignore empty grid axes changed default view range from 2000 to 5000 fixed an issue where countour sometimes displays a shadow artifact in orthographic mode fixed an issue where the clipping plane widgeth was not rotating in orthographic mode fixed a performance issue on projects with many hidden grids fixed an issue where the viewer hangs on load if the grid is invalid fixed an issue where the translucent state was not applied to selected objects fixed an issue where the laser measure tool was ignoring extruded grid axes fixed an issue where the laser measure tool's perpendicular raycast sometimes failed fixed an issue where geometry would dissapear after taking a 3d snapshot fixed an issue where grids and axes were not clipped by clipping planes in a 3d snapshot fixed a precision issue on large projects fixed an issue where hidden grids would reappear when selecting an object fixed an issue where hidden objects would reappear when opening the settings menu fixed an issue where the camera would zoom through planes fixed an issue where objects were not visible when double clicked fixed an issue where measurement labels were not visible in snapshots fixed an issue where loading a grid would crash the viewer fixed an issue where contours were not shown fixed an issue when mouse buttons 3 and 4 were clicked, an exception would occur fixed an issue where a clipping plane removed using delete key was still returned by getclippingplanes 2022 11 29 added getgrids method added getgridaxisstate and setgridaxisstate methods added axis field to clippingplaneparams to assign a grid axis to a clipping plane changed clipping planes to now cut away grids changed when opening models without geometry, the initial viewpoint is not set deprecated screenshot , use capturescreenshot instead deprecated each , use getobjects instead deprecated eachselected , use getselected instead deprecated translucent , use maketranslucent instead deprecated translucentall , use makealltranslucent instead deprecated opaque , use makeopaque instead deprecated opaqueall , use makeallopaque instead deprecated loadurl , use loadmodelsfromtoken instead deprecated transformmodel , use settransform instead deprecated color , use getobjectcolors and setobjectcolors instead deprecated resetcolors , use resetobjectcolors instead deprecated clippingplanes , use getclippingplanes and setclippingplanes instead 2022 10 07 updated three js to r141 2022 09 07 updated three js to r140 added viewer clippingplanes event 2022 06 30 updated three js to r139 added viewer clippingplanes event improved appearance of measurement lines improved appearance of clipping plane intersection curves fixed an issue where grid axis extrusions would have bad geometry fixed an issue with z fighting when drawing clipping planes fixed an issue where hidden line shader was not applied to transparent objects fixed an issue where gesture animations were not updated 2022 04 29 updated three js to r138 removed webgl2 support in safari due to large performance regression changed measure labels to be hidden behind the camera when using dom text rendering fixed an issue where point clouds were not properly unloaded fixed an issue where labels were missing in screenshots when using dom text rendering fixed an issue with jquery plug in depending on $ existing in the global context fixed an issue where images added by the images method were not displayed fixed an issue where the boundingbox method returned an empty box instead of the scene bounding box when passing null as an argument fixed an issue where the viewer click event was missing clientx / clienty fields on safari 12 (ios 12 or earlier) fixed an issue causing the canvas to always be blank in safari 12 (ios 12 or earlier) 2022 03 30 updated three js to r137 added pixelratio to render settings added support for dom text rendering improved measurements fixed an issue where the pixel ratio was reset on window resize fixed an issue where the viewer click event was triggered multiple times on touch events when embedded in an ios web view fixed clipping plane dragging on touch devices fixed updating clipping plane intersection curves