--- The normal problem is basically determined by angle.
--- Normal *. * normal *, * Common * problem * n. * problem: ** form * n. * form *, * shape * vt. * form * verdict * n. * ruling *, * conclusion *
---
/*
Polyop. getfaceselection $
P_22 = polyop. getfacenormal $19 -- node: <node = unsupplied>
P_14 = polyop. getfacenormal $151 -- node: <node = unsupplied>
ACOs (DOT p_22 p_14)
*/
--- This can be done from the perspective,
--- This operation is probably because there is a problem with the idea and should be used on existing tools.
FN normal_flipvt face_num =
(
Level1 = modpanel. getcurrentobject ()
If classof level1 = edit_poly or classof level1 = editable_poly then
(
/* Try (selfaces = polyop. getnumfaces level1)
Catch (
Selfaces = $. edit_poly.editpolymod.getnumfaces () -- node: $
)*/
Selfaces = polyop. getfaceselection $
Selfaces = (selfaces as array)
-- Selfaces. numberset
For I in 1 to selfaces. Count do --- * aux. V. vt. * do *, * do *, * do
(
Try ($. editablepoly. setselection # face # {(selfaces [I])})
Catch ($. edit_poly.editpolymod.select # face # {(selfaces [I])})
/* Try ($. editablepoly. setselection # face # {(selfaces [I + 1])})
Catch ($. edit_poly.editpolymod.select # face # {(selfaces [I + 1])}) */
P_22 = polyop. getfacenormal $ (selfaces [I])
/* P_14 = polyop. getfacenormal $ (selfaces [I + 1]) */
P_14 = polyop. getfacenormal $ face_num
If ACOs (FIG)> 130. Then
(
Try ($. editablepoly. setselection # face # {(selfaces [I])})
Catch ($. edit_poly.editpolymod.select # face # {(selfaces [I])})
Try ($. editablepoly. flipnormals 1)
Catch (
$. Edit_poly.editpolymod.buttonop # flipface
)
)
) --- End * n. * end *, * destination * Vt. * end *
)
) --- End * n. * end *, * Target * Vt. * end * function * n. * function *, * Title *, * function *
Try (destroydialog gt_yongchao_normal) catch ()
--- In my opinion, yingaichong has been put to an end at the beginning.
Rolout gt_yongchao_normal "gaitian-strong UV" width: 162 Height: 300
(
Button pickk "top layer" -- [filter: <function>] * [tooltip: <string>] * [autodisplay: <Boolean>] *
Button btn1 "repair normal" width: 107 Height: 30
On pickk pressed do
(
If classof level1 = edit_poly or classof level1 = editable_poly then
(
Selfaces = polyop. getfaceselection $
If selfaces. numberset = 1 then
(
Pickk. Text = (selfaces as array) [1] as string
)
)
) --- End * n. * end *, * Target * Vt. * end * pick * Vt. * pick; pick *
On btn1 pressed do
(
For I in selection do
(
Normal_flipvt (try (pickk. Text as integer) catch (1 ))
)
)
)
Createdialog gt_yongchao_normal