Home
Reply
Regular Contributor
Vi2
Posts: 55

Error in api_convert_to_spline()

[ Edited ]

2 FACEs from model cannot be converted into spline form under new_periodic_splitting equal to 2. This operation is done under new_periodic_splitting equal to 0, 1 and 3.

 

part1124.sat - origin model, part1124.scm - Scheme AIDE script.

 

From  part1124.scm:

 

(define detail (car (part:load "C:/TEMP/part1124.sat"))) ;-> detail
(entity:check detail 70)                                              ;-> checked: 1 lumps 1 shells 0 wires 2 faces 2 loops 8 coedges 6 edges 4 vertices ()
(option:get "split_periodic_splines")
(option:set "new_periodic_splitting" 2)
(define sdetail (entity:spline-convert detail))                  ;-> *** ERROR *** entity:spline-convert: operation unsuccessful
(option:set "new_periodic_splitting" 3)
(define sdetail (entity:spline-convert detail))                  ;-> sdetail


 

Spatial Employee
Brian
Posts: 20

Re: Error in api_convert_to_spline()

Hi - You can log a bug against the failure with new_periodic_splitting==2. But I wonder why you are using a value of 2 for new_periodic_splitting? I would recommend using new_periodic_splitting==3 instead: new_periodic_splitting==3 will avoid sliver faces and minimize spline conversion topology changes.

Cheers,

Brian