[Bf-python] NMesh.setSubDivLevels and level 0
Campbell J Barton
cbarton at metavr.com
Sat Jan 1 03:01:16 CET 2005
At the moment NMesh - dosent support edge info- I spent a whole day
trying to add edge support to NMesh and got a working (read only)
NMesh.Edge object working
- Much like the face- but had problems writing it back to the mesh- I
put a fair ammount of work into this and there probably only a few
issues (that I cant solve), is sombody wants to look at it then just
tell me :)
- Cam
Stephane SOPPERA wrote:
> Stephane SOPPERA wrote:
>
>> Hi,
>>
>> While trying to make a script that change the subdivisions values of
>> meshes, I noticed two issues in NMesh.setSubDivLevels function.
>> First this function only accept a range of value from 1 to 6 whereas
>> the buttons in the interface enables to go from 0 to 6. 0 is
>> especially usefull to speedup the display of subdivided surfaces that
>> are not edited.
>> Second, when subdivision levels are updated through python, the
>> values in the buttons are not updated.
>>
>> Could setSubDivLevels function accept 0 level?
>> As far as I know, the only modifications needed is to change the line
>> #define NMESH_SUBDIV_MIN 1
>> in NMesh.c.
>
>
> By the way I also noticed that the edge informations get lost when
> using NMesh.update member function.
> How can I change the subdivision levels without losing the edges
> informations?
>
> Thanks,
>
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-python
mailing list