Skip to content

Commit

Permalink
Изменил алгшоритм расчета lod`а для #118
Browse files Browse the repository at this point in the history
  • Loading branch information
zamtmn committed Mar 26, 2024
1 parent 214a56f commit 88d1ef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cad_source/zengine/core/entities/uzeentarc.pas
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,11 @@ procedure GDBObjARC.createpoints(var DC:TDrawContext);
Vertex3D_in_WCS_Array.PushBackData(pv);

if dc.MaxDetail then
maxlod:=50
maxlod:=100
else
maxlod:=20;
maxlod:=60;

l:=r*angle/(dc.DrawingContext.zoom*dc.DrawingContext.zoom*3);
l:=r*angle/(dc.DrawingContext.zoom{*dc.DrawingContext.zoom}*10);
if (l>maxlod)or dc.MaxDetail then lod:=maxlod
else
begin
Expand Down

0 comments on commit 88d1ef6

Please sign in to comment.