>From the 
>[manual](https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-importcpp-pragma)
> :
    
    
     proc cppMethod(this: CppObj, a, b, c: cint) {.importcpp: "#.CppMethod(@)".}
     Produces:
     x->CppMethod(1, 2, 3)
     
     As a special rule to keep backwards compatibility with older versions of 
the importcpp pragma,
     if there is no special pattern character (any of # ' @) at all, C++'s dot 
or arrow notation is assumed,
     so the above example can also be written as:
     
     proc cppMethod(this: CppObj, a, b, c: cint) {.importcpp: "CppMethod".}
    
    

The same thing is happening in your snippet.

Try using `importcpp: THREE.BoxGeometry(@)`

PS: I think you don't really need `jsnew`, you can just do `importcpp: "new 
THREE.BoxGeometry(@)"`

Reply via email to