[Vm-dev] VM Maker: VMMaker.oscog-eem.3017.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Aug 3 01:09:28 UTC 2021

Eliot Miranda uploaded a new version of VMMaker to project VM Maker:

==================== Summary ====================

Name: VMMaker.oscog-eem.3017
Author: eem
Time: 2 August 2021, 6:08:24.214751 pm
UUID: 616c26f8-2727-40e1-a267-a779f796c63a
Ancestors: VMMaker.oscog-eem.3016

CroquetPlugin: Oops. Add the new export directive to primitiveTriBoxIntersects.

=============== Diff against VMMaker.oscog-eem.3016 ===============

Item was changed:
  ----- Method: CroquetPlugin>>primitiveTriBoxIntersects (in category 'transforms') -----
  	"Primitive. Answer whether an AABB intersects with a given triangle"
+ 	<export: true flags: #(FastCPrimitiveFlag FastCPrimitiveAlignForFloatsFlag)>
  	| minCorner maxCorner v0 v1 v2 result |
  	v2 := self stackVector3: 0.
  	v1 := self stackVector3: 1.
  	v0 := self stackVector3: 2.
  	maxCorner := self stackVector3: 3.
  	minCorner := self stackVector3: 4.
  	(v0 isNil or: [v1 isNil or: [v2 isNil
  	 or: [maxCorner isNil or: [minCorner isNil]]]]) ifTrue:
  		[^interpreterProxy primitiveFail].
  	"N.B. as of 8/2021 triBoxOverlap is simply a stub."
  	result := self triBoxOverlap: minCorner _: maxCorner _: v0 _: v1 _: v2.
  	result < 0 ifTrue:[^interpreterProxy primitiveFail].
  	^interpreterProxy methodReturnBool: result > 0!

More information about the Vm-dev mailing list