ssm.bff

来自「toolbox of BVQX, This is the access betw」· BFF 代码 · 共 41 行

BFF
41
字号
# BinaryFileFormat (leave this tag as its own magic token!)

# BVQX file format for *.SSM files (Sphere to Sphere Mapping info)
# SSM FileVersions supported: 1, 2
#
# Version:  v0.6e
# Build:    7030215
# Date:     Mar-02 2007, 3:35 PM CET
# Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
# URL/Info: http://wiki.brainvoyager.com/BVQXtools

# FILE FORMAT
Description:Sphere-to-sphere mapping files
EncodingSyntax:ieee-le
Extensions:ssm

# FIELDS
ListOfFields:!
type  !cond                   !disktype!datatype!dim                      !default !varname
FIELD !                       !uint16  !double  !1, 1                     !        !FileVersion
FIELD !                       !uint32  !double  !1, 1                     !        !NrOfTargetVertices
EXPRE !@FileVersion == 1  !!!!!@NrOfSourceVertices = [];
FIELD !@FileVersion > 1       !uint32  !double  !1, 1                     !        !NrOfSourceVertices
EXPRE !$BFFWRITE          !!!!!@SourceOfTarget = @SourceOfTarget - 1;
FIELD !                       !uint32  !double  !@NrOfTargetVertices, 1   !        !SourceOfTarget
EXPRE !                   !!!!!@SourceOfTarget = @SourceOfTarget + 1;

# Read rest of File into REMAININGCONTENT
EXPRE !$BFFREAD           !!!!!$RemSize = $FILESIZE - ftell(fid);
EXPRE !$BFFWRITE          !!!!!$RemSize = 0; try, if isfield(@@, 'REMAININGCONTENT'), $RemSize = prod(size(@REMAININGCONTENT)); end, end
FIELD !$RemSize > 0           !uint8   !uint8   !1, $RemSize              !        !REMAININGCONTENT

EndListOfFields

NewFileCode:!
@FileVersion = 1;
@NrOfTargetVertices = 0;
@NrOfSourceVertices = [];
@SourceOfTarget = zeros(0, 1);
EndNewFileCode

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?