[Scilab-users] STEP- Datei
Samuel Gougeon
sgougeon at free.fr
Wed Jul 31 17:37:41 CEST 2013
Le 31/07/2013 14:15, Pascal Buehler a écrit :
> Hi there, my name is Pascal,
>
> i want to load a STEP file into Scilab. Now, my problem is to seperate
> the koordinates from the String!
> I tried various things but non of the is satifying.
> the goal ist to make the koordinates from string into a matrix of
> nubers and to display in a figure.
> Anyone who knows an elegant way?
-->Cartesian_Point
Cartesian_Point =
!#1326=CARTESIAN_POINT('',(0.,0.,0.)); !
.../...
! !
!#1383=CARTESIAN_POINT('centre point',(90.,75.,10.)); !
How do you want to manage the 'centre point' attribute, as well as the
"#nnnn" identifier?
To grab the 3 coordinates from each of these CARTESIAN_POINT line, you
may use:
points = [];
for cpd = Cartesian_Point'
[i,i,m] = regexp(cpd,"/\d{1,}\.\d*/");
points($+1,:) = m.';
end
points
HTH
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130731/2de07bab/attachment.htm>
More information about the users
mailing list